2 * Stage 1 of the trace events.
4 * Override the macros in <trace/trace_event_types.h> to include the following:
6 * struct ftrace_raw_<call> {
7 * struct trace_entry ent;
12 * The <type> <item> is created by the TRACE_FIELD(type, item, assign)
13 * macro. We simply do "type item;", and that will create the fields
18 #define TRACE_FORMAT(call, proto, args, fmt)
21 #define __array(type, item, len) type item[len];
24 #define __field(type, item) type item;
26 #undef TP_STRUCT__entry
27 #define TP_STRUCT__entry(args...) args
30 #define TRACE_EVENT(name, proto, args, tstruct, print, assign) \
31 struct ftrace_raw_##name { \
32 struct trace_entry ent; \
35 static struct ftrace_event_call event_##name
37 #include <trace/trace_event_types.h>