]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tracing: show event name in trace for TRACE_EVENT created events
authorSteven Rostedt <srostedt@redhat.com>
Fri, 13 Mar 2009 02:00:19 +0000 (22:00 -0400)
committerSteven Rostedt <srostedt@redhat.com>
Fri, 13 Mar 2009 02:00:19 +0000 (22:00 -0400)
Unlike TRACE_FORMAT() macros, the TRACE_EVENT() macros do not show
the event name in the trace file. Knowing the event type in the trace
output is very useful.

Instead of:

   task swapper:0 [140] ==> ntpd:3308 [120]

We now have:

   sched_switch: task swapper:0 [140] ==> ntpd:3308 [120]

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace_events_stage_2.h

index ca347afd6aa038ff05be1479e787a17ea1c17765..5117c43f5c678c5dc4d46dc278d2f14574a9893c 100644 (file)
@@ -57,7 +57,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags)      \
                                                                        \
        field = (typeof(field))entry;                                   \
                                                                        \
-       ret = trace_seq_printf(s, print);                               \
+       ret = trace_seq_printf(s, #call ": " print);                    \
        if (!ret)                                                       \
                return TRACE_TYPE_PARTIAL_LINE;                         \
                                                                        \