]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34ac8c77e44b05e6e96bfbd6627a4e7f07b26108
treef9a5e526c147ca566c8f97b814b8abc2983e118d
parent2c9f6c0d82dc3990eb6a7bf4b5d0e920324e12b0
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