summaryrefslogtreecommitdiff
path: root/kernel/rcu.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-08-18 01:08:37 (GMT)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-09-23 16:15:31 (GMT)
commit0d75292467b0c8554d70c751a35af6514202ac28 (patch)
treeebac548cbfac7ed5ee2ac68c08208d6a1d50fd38 /kernel/rcu.h
parent26cdfedf6a902345f8604ea8e0b7dd2566b37a46 (diff)
downloadlinux-fsl-qoriq-0d75292467b0c8554d70c751a35af6514202ac28.tar.xz
rcu: Have rcutiny tracepoints use tracepoint_string()
This commit extends the work done in f7f7bac9 (rcu: Have the RCU tracepoints use the tracepoint_string infrastructure) to cover rcutiny. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/rcu.h')
-rw-r--r--kernel/rcu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/rcu.h b/kernel/rcu.h
index 7713196..7859a0a 100644
--- a/kernel/rcu.h
+++ b/kernel/rcu.h
@@ -122,4 +122,11 @@ int rcu_jiffies_till_stall_check(void);
#endif /* #ifdef CONFIG_RCU_STALL_COMMON */
+/*
+ * Strings used in tracepoints need to be exported via the
+ * tracing system such that tools like perf and trace-cmd can
+ * translate the string address pointers to actual text.
+ */
+#define TPS(x) tracepoint_string(x)
+
#endif /* __LINUX_RCU_H */