Skip to content

Commit

Permalink
tracing: remove obsolete TRACE_EVENT_FORMAT macro
Browse files Browse the repository at this point in the history
Impact: clean up

The TRACE_EVENT_FORMAT macro is no longer used by trace points
and only the DECLARE_TRACE, TRACE_FORMAT or TRACE_EVENT macros should
be used by them. Although the TRACE_EVENT_FORMAT macro is still used
by the internal tracing utility, it should not be used in core
kernel code.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
  • Loading branch information
Steven Rostedt committed Mar 10, 2009
1 parent d6e2ca4 commit 157587d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
3 changes: 0 additions & 3 deletions include/linux/tracepoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ static inline void tracepoint_synchronize_unregister(void)
#define TRACE_FORMAT(name, proto, args, fmt) \
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))

#define TRACE_EVENT_FORMAT(name, proto, args, fmt, struct, tpfmt) \
TRACE_FORMAT(name, PARAMS(proto), PARAMS(args), PARAMS(fmt))

#define TRACE_EVENT(name, proto, args, struct, print, assign) \
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))

Expand Down
2 changes: 1 addition & 1 deletion include/trace/lockdep_event_types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#ifndef TRACE_EVENT_FORMAT
#ifndef TRACE_FORMAT
# error Do not include this file directly.
# error Unless you know what you are doing.
#endif
Expand Down
2 changes: 1 addition & 1 deletion include/trace/sched_event_types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* use <trace/sched.h> instead */
#ifndef TRACE_EVENT_FORMAT
#ifndef TRACE_EVENT
# error Do not include this file directly.
# error Unless you know what you are doing.
#endif
Expand Down
3 changes: 0 additions & 3 deletions kernel/trace/trace_events_stage_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#undef TRACE_FORMAT
#define TRACE_FORMAT(call, proto, args, fmt)

#undef TRACE_EVENT_FORMAT
#define TRACE_EVENT_FORMAT(name, proto, args, fmt, tstruct, tpfmt)

#undef __array
#define __array(type, item, len) type item[len];

Expand Down
6 changes: 1 addition & 5 deletions kernel/trace/trace_events_stage_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* }
*
*
* For those macros defined with TRACE_EVENT_FORMAT:
* For those macros defined with TRACE_EVENT:
*
* static struct ftrace_event_call event_<call>;
*
Expand Down Expand Up @@ -144,10 +144,6 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
.unregfunc = ftrace_unreg_event_##call, \
}

#undef TRACE_EVENT_FORMAT
#define TRACE_EVENT_FORMAT(call, proto, args, fmt, tstruct, raw) \
TRACE_FORMAT(call, PARAMS(proto), PARAMS(args), PARAMS(fmt))

#undef __entry
#define __entry entry

Expand Down

0 comments on commit 157587d

Please sign in to comment.