Open DanielTimLee opened 4 years ago
Yes, the SDT events are from libraries so it'd be different for each program due to the different dependencies. But other events are global so can be listed regardless of the argument (program).
I don't think it takes an argument. But it needs to be root to print kernel tracing events or have an argument for the executable if it has SDT events. And I found a bug that it didn't pass the option if there's no command line argument (for target executable). I'll fix that separately.
I agree the documentation needs updates. See https://sourceware.org/systemtap/wiki/AddingUserSpaceProbingToApps.
uftrace --list-event feature isn't well documented.
The only place that I can see how this option could be used is commit log. I think document should tell
--list-event
needs argument.Seems the feature is for systemtap SDT and perf event, so it might be used less, but, I think this part should be better documented than it is now.