tracing: add DEFINE_TRACE_FMT to tracepoint.h
authorSteven Rostedt <srostedt@redhat.com>
Tue, 24 Feb 2009 17:07:53 +0000 (12:07 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Wed, 25 Feb 2009 02:53:32 +0000 (21:53 -0500)
This patch creates a DEFINE_TRACE_FMT to map to DECLARE_TRACE.
This allows for the developers to place format strings and
args in with their tracepoint declaration. A tracer may now
override the DEFINE_TRACE_FMT macro and use it to record
a default format.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
include/linux/tracepoint.h

index 7570054..34ae464 100644 (file)
@@ -153,4 +153,7 @@ static inline void tracepoint_synchronize_unregister(void)
        synchronize_sched();
 }
 
+#define DEFINE_TRACE_FMT(name, proto, args, fmt)               \
+       DECLARE_TRACE(name, TPPROTO(proto), TPARGS(args))
+
 #endif