Skip to content

Commit 81c7a51

Browse files
douglas-raillard-armrostedt
authored andcommitted
tracing: Align synth event print fmt
The vast majority of ftrace event print fmt consist of a space-separated field=value pair. Synthetic event currently use a comma-separated field=value pair, which sticks out from events created via more classical means. Align the format of synth events so they look just like any other event, for better consistency and less headache when doing crude text-based data processing. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/20250319215028.1680278-1-douglas.raillard@arm.com Signed-off-by: Douglas Raillard <douglas.raillard@arm.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent c165764 commit 81c7a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_events_synth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ static int __set_synth_event_print_fmt(struct synth_event *event,
612612
fmt = synth_field_fmt(event->fields[i]->type);
613613
pos += snprintf(buf + pos, LEN_OR_ZERO, "%s=%s%s",
614614
event->fields[i]->name, fmt,
615-
i == event->n_fields - 1 ? "" : ", ");
615+
i == event->n_fields - 1 ? "" : " ");
616616
}
617617
pos += snprintf(buf + pos, LEN_OR_ZERO, "\"");
618618

0 commit comments

Comments
 (0)