ftrace: Output REC->var instead of __entry->var for trace format
authorZhaolei <zhaolei@cn.fujitsu.com>
Wed, 8 Apr 2009 09:00:13 +0000 (17:00 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Apr 2009 13:48:53 +0000 (15:48 +0200)
print fmt: "irq=%d return=%s", __entry->irq, __entry->ret ? \"handled\" : \"unhandled\"

"__entry" should be convert to "REC" by __stringify() macro.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <49DC679D.2090901@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events_stage_2.h

index 30743f7d41108b942cc596f06856ab633b792c47..d363c6672c6c6aa85af3b40066af8e02d296c1b5 100644 (file)
@@ -105,10 +105,10 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags)  \
                return 0;
 
 #undef __entry
-#define __entry "REC"
+#define __entry REC
 
 #undef TP_printk
-#define TP_printk(fmt, args...) "%s, %s\n", #fmt, #args
+#define TP_printk(fmt, args...) "%s, %s\n", #fmt, __stringify(args)
 
 #undef TP_fast_assign
 #define TP_fast_assign(args...) args