You can use the perf tool to generate a report for a specific trace event:

perf record -e some:event -a

That generates a perf.data file that will contain any events that occured between when the command was issued and stopped. The resulting trace output can be viewed with

perf script

Is there any way to just have perf output the trace output to stdout directly? If not is there another tool that will do this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.