]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Don't trace hcalls on offline CPUs
authorDenis Kirjanov <kda@linux-powerpc.org>
Mon, 14 Dec 2015 20:18:06 +0000 (23:18 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 15 Feb 2016 10:10:03 +0000 (21:10 +1100)
commit4894cf3b8b1534a928087421c62cc8d0cb004d51
treed963e39a429eda7aa9de95e0084e6333432527a7
parent166d66622b9f69bd2b59b4cb9ef92c1ceb3f7619
powerpc/pseries: Don't trace hcalls on offline CPUs

If a cpu is hotplugged while the hcall trace points are active, it's
possible to hit a warning from RCU due to the trace points calling into
RCU from an offline cpu, eg:

  RCU used illegally from offline CPU!
  rcu_scheduler_active = 1, debug_locks = 1

Make the hypervisor tracepoints conditional by using
TRACE_EVENT_FN_COND.

Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/trace.h