Skip to content

Commit f28e557

Browse files
author
Steven Rostedt
committed
tracing: show event name in trace for TRACE_EVENT created events
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>
1 parent 889a6c3 commit f28e557

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/trace/trace_events_stage_2.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
5757
\
5858
field = (typeof(field))entry; \
5959
\
60-
ret = trace_seq_printf(s, print); \
60+
ret = trace_seq_printf(s, #call ": " print); \
6161
if (!ret) \
6262
return TRACE_TYPE_PARTIAL_LINE; \
6363
\

0 commit comments

Comments
 (0)