aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_export.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-12-15 02:39:42 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-01-06 11:41:54 -0500
commit509e760cd91c831983097ae174cb6c0b8c6c8e6b (patch)
tree985da24e69e80b81713c2901c94b127c961cd426 /kernel/trace/trace_export.c
parent809826a389040e0ad9d646b587bccc0e34691afd (diff)
tracing: Add print_fmt field
This is part of a patch set that removes the show_format method in the ftrace event macros. The print_fmt field is added to hold the string that shows the print_fmt in the event format files. This patch only adds the field but it is currently not used. Later patches will use this field to enable us to remove the show_format field and function. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> LKML-Reference: <4B273D3E.2000704@cn.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_export.c')
-rw-r--r--kernel/trace/trace_export.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 9978a4f40090..95d14b640a66 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -203,6 +203,9 @@ static int ftrace_raw_init_event(struct ftrace_event_call *call)
203 return 0; 203 return 0;
204} 204}
205 205
206#undef __entry
207#define __entry REC
208
206#undef __field 209#undef __field
207#define __field(type, item) 210#define __field(type, item)
208 211
@@ -218,6 +221,9 @@ static int ftrace_raw_init_event(struct ftrace_event_call *call)
218#undef __dynamic_array 221#undef __dynamic_array
219#define __dynamic_array(type, item) 222#define __dynamic_array(type, item)
220 223
224#undef F_printk
225#define F_printk(fmt, args...) #fmt ", " __stringify(args)
226
221#undef FTRACE_ENTRY 227#undef FTRACE_ENTRY
222#define FTRACE_ENTRY(call, struct_name, type, tstruct, print) \ 228#define FTRACE_ENTRY(call, struct_name, type, tstruct, print) \
223 \ 229 \
@@ -228,6 +234,7 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
228 .id = type, \ 234 .id = type, \
229 .system = __stringify(TRACE_SYSTEM), \ 235 .system = __stringify(TRACE_SYSTEM), \
230 .raw_init = ftrace_raw_init_event, \ 236 .raw_init = ftrace_raw_init_event, \
237 .print_fmt = print, \
231 .show_format = ftrace_format_##call, \ 238 .show_format = ftrace_format_##call, \
232 .define_fields = ftrace_define_fields_##call, \ 239 .define_fields = ftrace_define_fields_##call, \
233}; \ 240}; \