tracing: Move tracepoint callbacks from declaration to definition
[linux-2.6.git] / include / trace / ftrace.h
index 1274002..3a0b44b 100644 (file)
        };                                                      \
        static struct ftrace_event_call event_##name
 
+/* Callbacks are meaningless to ftrace. */
+#undef TRACE_EVENT_FN
+#define TRACE_EVENT_FN(name, proto, args, tstruct,             \
+               assign, print, reg, unreg)                      \
+       TRACE_EVENT(name, TP_PROTO(proto), TP_ARGS(args),       \
+               TP_STRUCT__entry(tstruct),                      \
+               TP_fast_assign(assign),                         \
+               TP_printk(print))
+
 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)