Skip to content

Commit

Permalink
tracing: define DEFINE_EVENT_PRINT not related to DEFINE_EVENT
Browse files Browse the repository at this point in the history
Current definition define DEFINE_EVENT_PRINT to be DEFINE_EVENT.
Actually, at this point DEFINE_EVENT is already an empty macro. Let's
cut the relationship between DEFINE_EVENT_PRINT and DEFINE_EVENT.

Link: http://lkml.kernel.org/r/20200612092844.56107-4-richard.weiyang@linux.alibaba.com

Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
  • Loading branch information
Wei Yang authored and Steven Rostedt (VMware) committed Jun 30, 2020
1 parent b6f9eb8 commit 61df16f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/trace/trace_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ TRACE_MAKE_SYSTEM_STR();
#define DEFINE_EVENT(template, name, proto, args)

#undef DEFINE_EVENT_PRINT
#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
#define DEFINE_EVENT_PRINT(template, name, proto, args, print)

#undef TRACE_EVENT_FLAGS
#define TRACE_EVENT_FLAGS(event, flag)
Expand Down Expand Up @@ -444,8 +443,7 @@ static struct trace_event_fields trace_event_fields_##call[] = { \
{} };

#undef DEFINE_EVENT_PRINT
#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
#define DEFINE_EVENT_PRINT(template, name, proto, args, print)

#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)

Expand Down

0 comments on commit 61df16f

Please sign in to comment.