mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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>
This commit is contained in:
parent
c1657640a8
commit
81c7a515b0
|
|
@ -612,7 +612,7 @@ static int __set_synth_event_print_fmt(struct synth_event *event,
|
|||
fmt = synth_field_fmt(event->fields[i]->type);
|
||||
pos += snprintf(buf + pos, LEN_OR_ZERO, "%s=%s%s",
|
||||
event->fields[i]->name, fmt,
|
||||
i == event->n_fields - 1 ? "" : ", ");
|
||||
i == event->n_fields - 1 ? "" : " ");
|
||||
}
|
||||
pos += snprintf(buf + pos, LEN_OR_ZERO, "\"");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user