Messages in this thread Patch in this message | | | Date | Tue, 24 Feb 2009 14:33:46 -0500 | From | Steven Rostedt <> | Subject | [PATCH 2/4][RFC] tracing: add DECLARE_TRACE_FMT to tracepoint.h |
| |
From: Steven Rostedt <srostedt@redhat.com>
This patch creates a DECLARE_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 DECLARE_TRACE_FMT macro and use it to record a default format.
Signed-off-by: Steven Rostedt <srostedt@redhat.com> --- 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 7570054..780f750 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 DECLARE_TRACE_FMT(name, proto, args, fmt, fmt_args) \ + DECLARE_TRACE(name, TPPROTO(proto), TPARGS(args)) + #endif -- 1.5.6.5 --
| |