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;
9 * <type2> <item2>[<len>];
13 * The <type> <item> is created by the __field(type, item) macro or
14 * the __array(type2, item2, len) macro.
15 * We simply do "type item;", and that will create the fields
20 #define TRACE_FORMAT(call, proto, args, fmt)
23 #define __array(type, item, len) type item[len];
26 #define __field(type, item) type item;
28 #undef TP_STRUCT__entry
29 #define TP_STRUCT__entry(args...) args
32 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \
33 struct ftrace_raw_##name { \
34 struct trace_entry ent; \
37 static struct ftrace_event_call event_##name
39 #include <trace/trace_event_types.h>