Message ID | 20220131163642.2754485-3-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 29a06f7619b419146920ed38e4dce880eb769077 |
Headers | show |
Series | libtracefs: synthetic event fixes | expand |
diff --git a/src/tracefs-hist.c b/src/tracefs-hist.c index 8d99492c84a7..622fe5c98c41 100644 --- a/src/tracefs-hist.c +++ b/src/tracefs-hist.c @@ -2155,8 +2155,10 @@ int tracefs_synth_echo_cmd(struct trace_seq *seq, if (!path) goto out_free; - trace_seq_printf(seq, "echo '%s%s %s' > %s/%s\n", - synth->dyn_event->prefix, synth->dyn_event->event, + trace_seq_printf(seq, "echo '%s%s%s %s' > %s/%s\n", + synth->dyn_event->prefix, + strlen(synth->dyn_event->prefix) ? ":" : "", + synth->dyn_event->event, synth->dyn_event->format, path, synth->dyn_event->trace_file); tracefs_put_tracing_file(path);