diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-24 12:07:53 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-24 21:53:32 -0500 |
commit | 7c37730cd31ddb2d3a1da142af9b18c29b8c433b (patch) | |
tree | 60e2d4a1b53dba29824b967345bc43814853b8a4 /include/linux/tracepoint.h | |
parent | c478f8786973d6d7552c652ddad3f6fd86b5af28 (diff) |
tracing: add DEFINE_TRACE_FMT to tracepoint.h
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>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r-- | include/linux/tracepoint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 75700545836..34ae464efff 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h @@ -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 |