Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f28e5576 authored by Steven Rostedt's avatar Steven Rostedt
Browse files

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: default avatarSteven Rostedt <srostedt@redhat.com>
parent 889a6c36
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -57,7 +57,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
									\
									\
	field = (typeof(field))entry;					\
	field = (typeof(field))entry;					\
									\
									\
	ret = trace_seq_printf(s, print);				\
	ret = trace_seq_printf(s, #call ": " print);			\
	if (!ret)							\
	if (!ret)							\
		return TRACE_TYPE_PARTIAL_LINE;				\
		return TRACE_TYPE_PARTIAL_LINE;				\
									\
									\