From: Steven Rostedt Date: Tue, 24 Feb 2009 17:07:53 +0000 (-0500) Subject: tracing: add DEFINE_TRACE_FMT to tracepoint.h X-Git-Tag: v2.6.30-rc1~2^2~87^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7c37730cd31ddb2d3a1da142af9b18c29b8c433b;p=karo-tx-linux.git 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 --- diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 757005458366..34ae464effff 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