tracing: wrap arguments with PARAMS
authorSteven Rostedt <srostedt@redhat.com>
Wed, 25 Feb 2009 20:54:30 +0000 (15:54 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Thu, 26 Feb 2009 02:44:26 +0000 (21:44 -0500)
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>
include/linux/tracepoint.h

index 3de09fa8e01d4cd722d9c54faa1e6da951ff1a12..62d13391a240f19a24723d000a653ede1e60a4b9 100644 (file)
@@ -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