Skip to content

Commit

Permalink
tracing: add DEFINE_TRACE_FMT to tracepoint.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt committed Feb 25, 2009
1 parent c478f87 commit 7c37730
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/tracepoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c37730

Please sign in to comment.