aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-10-12 18:16:41 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-12-11 12:17:39 -0500
commit9122caf99b85c0f16938419547d5a9a84ae287a4 (patch)
tree9ace6627305fb4f9402935f28f29c0a746d1f653
parentd633198088bd9e358566c470ed182994403acc7a (diff)
tracing, rcu: Hide trace event rcu_nocb_wake when not used
The trace event rcu_nocb_wake is only used when CONFIG_RCU_NOCB_CPU is defined. But the trace event is defined regardless. As defined trace events take up memory, it is a waste to have it defined when not used. Surround the trace event with an #ifdef to have it only defined when it is used. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r--include/trace/events/rcu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h
index 59d40c454aa0..dbca79ea0677 100644
--- a/include/trace/events/rcu.h
+++ b/include/trace/events/rcu.h
@@ -243,6 +243,7 @@ TRACE_EVENT(rcu_exp_funnel_lock,
243 __entry->grphi, __entry->gpevent) 243 __entry->grphi, __entry->gpevent)
244); 244);
245 245
246#ifdef CONFIG_RCU_NOCB_CPU
246/* 247/*
247 * Tracepoint for RCU no-CBs CPU callback handoffs. This event is intended 248 * Tracepoint for RCU no-CBs CPU callback handoffs. This event is intended
248 * to assist debugging of these handoffs. 249 * to assist debugging of these handoffs.
@@ -285,6 +286,7 @@ TRACE_EVENT(rcu_nocb_wake,
285 286
286 TP_printk("%s %d %s", __entry->rcuname, __entry->cpu, __entry->reason) 287 TP_printk("%s %d %s", __entry->rcuname, __entry->cpu, __entry->reason)
287); 288);
289#endif
288 290
289/* 291/*
290 * Tracepoint for tasks blocking within preemptible-RCU read-side 292 * Tracepoint for tasks blocking within preemptible-RCU read-side