2 * Setup the showing format of trace point.
5 * ftrace_format_##call(struct trace_seq *s)
7 * struct ftrace_raw_##call field;
10 * ret = trace_seq_printf(s, #type " " #item ";"
11 * " size:%d; offset:%d;\n",
13 * offsetof(struct ftrace_raw_##call,
20 #define TRACE_STRUCT(args...) args
23 #define TRACE_FIELD(type, item, assign) \
24 ret = trace_seq_printf(s, "\tfield:" #type " " #item ";\t" \
25 "offset:%u;\tsize:%u;\n", \
26 (unsigned int)offsetof(typeof(field), item), \
27 (unsigned int)sizeof(field.item)); \
32 #undef TRACE_FIELD_SPECIAL
33 #define TRACE_FIELD_SPECIAL(type_item, item, cmd) \
34 ret = trace_seq_printf(s, "\tfield special:" #type_item ";\t" \
35 "offset:%u;\tsize:%u;\n", \
36 (unsigned int)offsetof(typeof(field), item), \
37 (unsigned int)sizeof(field.item)); \
41 #undef TRACE_EVENT_FORMAT
42 #define TRACE_EVENT_FORMAT(call, proto, args, fmt, tstruct, tpfmt) \
44 ftrace_format_##call(struct trace_seq *s) \
46 struct ftrace_raw_##call field; \
51 trace_seq_printf(s, "\nprint fmt: \"%s\"\n", tpfmt); \