tracing: Have synthetic event test use raw_smp_processor_id()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 20 Feb 2020 21:29:50 +0000 (16:29 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 20 Feb 2020 22:43:41 +0000 (17:43 -0500)
commit3c18a9be7c9d4f53239795282c5d927f73f534b3
treef9a5e526c147ca566c8f97b814b8abc2983e118d
parent784bd0847eda032ed2f3522f87250655a18c0190
tracing: Have synthetic event test use raw_smp_processor_id()

The test code that tests synthetic event creation pushes in as one of its
test fields the current CPU using "smp_processor_id()". As this is just
something to see if the value is correctly passed in, and the actual CPU
used does not matter, use raw_smp_processor_id(), otherwise with debug
preemption enabled, a warning happens as the smp_processor_id() is called
without preemption enabled.

Link: http://lkml.kernel.org/r/20200220162950.35162579@gandalf.local.home
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/synth_event_gen_test.c