diff options
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r-- | include/trace/ftrace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 127400255e4c..3a0b44bdabf7 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -42,6 +42,15 @@ | |||
42 | }; \ | 42 | }; \ |
43 | static struct ftrace_event_call event_##name | 43 | static struct ftrace_event_call event_##name |
44 | 44 | ||
45 | /* Callbacks are meaningless to ftrace. */ | ||
46 | #undef TRACE_EVENT_FN | ||
47 | #define TRACE_EVENT_FN(name, proto, args, tstruct, \ | ||
48 | assign, print, reg, unreg) \ | ||
49 | TRACE_EVENT(name, TP_PROTO(proto), TP_ARGS(args), \ | ||
50 | TP_STRUCT__entry(tstruct), \ | ||
51 | TP_fast_assign(assign), \ | ||
52 | TP_printk(print)) | ||
53 | |||
45 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) | 54 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) |
46 | 55 | ||
47 | 56 | ||