I have tried looking at the documentation for
perf trace, and
trace-cmd, including the list of commands in "SEE ALSO".
I can trace e.g.
sched:sched_process_exec "live" using
perf trace -a --no-syscalls -e sched:sched_process_exec. However, it only shows the process name (e.g.
ls). It does not show the PID, unless the tracepoint has a specific parameter for it.
perf script always shows the PID, but it does not show live output; it shows the contents of a
I don't need this to be a single command, like
btrace is for
blktrace. I am happy to use a pipeline, analogous to
blktrace -d /dev/sda -o - | blkparse -i -.
(Both of the above commands show PIDs :-). It is frustrating to see the
blktrace family of commands, which also use trace events, can print live output in the same format as they can print recorded traces. I can't find such power in the general-purpose tracing tools!)