aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/trace/ftrace.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 360a77ad79e1..57c56a998ee6 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -45,14 +45,15 @@
45 }; \ 45 }; \
46 static struct ftrace_event_call event_##name 46 static struct ftrace_event_call event_##name
47 47
48#undef __cpparg
49#define __cpparg(arg...) arg
50
48/* Callbacks are meaningless to ftrace. */ 51/* Callbacks are meaningless to ftrace. */
49#undef TRACE_EVENT_FN 52#undef TRACE_EVENT_FN
50#define TRACE_EVENT_FN(name, proto, args, tstruct, \ 53#define TRACE_EVENT_FN(name, proto, args, tstruct, \
51 assign, print, reg, unreg) \ 54 assign, print, reg, unreg) \
52 TRACE_EVENT(name, TP_PROTO(proto), TP_ARGS(args), \ 55 TRACE_EVENT(name, __cpparg(proto), __cpparg(args), \
53 TP_STRUCT__entry(tstruct), \ 56 __cpparg(tstruct), __cpparg(assign), __cpparg(print)) \
54 TP_fast_assign(assign), \
55 TP_printk(print))
56 57
57#include TRACE_INCLUDE(TRACE_INCLUDE_FILE) 58#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
58 59