tracing: Introduce TRACE_EVENT_FN_COND macro
authorDenis Kirjanov <kda@linux-powerpc.org>
Mon, 14 Dec 2015 20:18:05 +0000 (23:18 +0300)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 23 Dec 2015 19:27:21 +0000 (14:27 -0500)
commit2701121b8f4db4d69c327c0d8f8694ff2ce30ef7
tree8075d22174057d82cf72134c1923efd303dd6df3
parentff078d8fc644722f7b163d79e8a03b00b9dc2385
tracing: Introduce TRACE_EVENT_FN_COND macro

TRACE_EVENT_FN can't be used in some circumstances
like invoking trace functions from offlined CPU due
to RCU usage.

This patch adds the TRACE_EVENT_FN_COND macro
to make such trace points conditional.

Link: http://lkml.kernel.org/r/1450124286-4822-1-git-send-email-kda@linux-powerpc.org
Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/tracepoint.h
include/trace/define_trace.h
include/trace/trace_events.h