提交 157587d7 编写于 作者: S Steven Rostedt

tracing: remove obsolete TRACE_EVENT_FORMAT macro

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: NSteven Rostedt <srostedt@redhat.com>
上级 d6e2ca4c
...@@ -157,9 +157,6 @@ static inline void tracepoint_synchronize_unregister(void) ...@@ -157,9 +157,6 @@ static inline void tracepoint_synchronize_unregister(void)
#define TRACE_FORMAT(name, proto, args, fmt) \ #define TRACE_FORMAT(name, proto, args, fmt) \
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) 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) \ #define TRACE_EVENT(name, proto, args, struct, print, assign) \
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
......
#ifndef TRACE_EVENT_FORMAT #ifndef TRACE_FORMAT
# error Do not include this file directly. # error Do not include this file directly.
# error Unless you know what you are doing. # error Unless you know what you are doing.
#endif #endif
......
/* use <trace/sched.h> instead */ /* use <trace/sched.h> instead */
#ifndef TRACE_EVENT_FORMAT #ifndef TRACE_EVENT
# error Do not include this file directly. # error Do not include this file directly.
# error Unless you know what you are doing. # error Unless you know what you are doing.
#endif #endif
......
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
#undef TRACE_FORMAT #undef TRACE_FORMAT
#define TRACE_FORMAT(call, proto, args, fmt) #define TRACE_FORMAT(call, proto, args, fmt)
#undef TRACE_EVENT_FORMAT
#define TRACE_EVENT_FORMAT(name, proto, args, fmt, tstruct, tpfmt)
#undef __array #undef __array
#define __array(type, item, len) type item[len]; #define __array(type, item, len) type item[len];
......
...@@ -35,7 +35,7 @@ ...@@ -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>; * static struct ftrace_event_call event_<call>;
* *
...@@ -144,10 +144,6 @@ __attribute__((section("_ftrace_events"))) event_##call = { \ ...@@ -144,10 +144,6 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
.unregfunc = ftrace_unreg_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 #undef __entry
#define __entry entry #define __entry entry
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册