summaryrefslogtreecommitdiff
path: root/include/linux/tracepoint.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-25 23:54:30 +0300
committerSteven Rostedt <srostedt@redhat.com>2009-02-26 05:44:26 +0300
commit3cdfdf91fcc77cfc82592e2b5c2ab35abe819c41 (patch)
tree176e2dbbf4e8c6ab59d0243f501338d104d7a31f /include/linux/tracepoint.h
parenteef62a6826b8ab530cefff5aa55c1661a209c803 (diff)
downloadlinux-3cdfdf91fcc77cfc82592e2b5c2ab35abe819c41.tar.xz
tracing: wrap arguments with PARAMS
Peter Zijlstra warned that TPPROTO and TPARGS might become something other than a simple copy of itself. To prevent this from having side effects in the TRACE_FORMAT macro in tracepoint.h, we add a PARAMS() macro to be defined as just a wrapper. Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r--include/linux/tracepoint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index 3de09fa8e01d..62d13391a240 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -153,7 +153,8 @@ static inline void tracepoint_synchronize_unregister(void)
synchronize_sched();
}
+#define PARAMS(args...) args
#define TRACE_FORMAT(name, proto, args, fmt) \
- DECLARE_TRACE(name, TPPROTO(proto), TPARGS(args))
+ DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
#endif