For instance, with trace-cmd
.
For tracing scheduling and VMEntry/Exit events we need to enable the following ftrace
events: sched:*
and kvm:*
.
Let's trace for 3 seconds.
# trace-cmd record -e sched:* -e kvm:* sleep 3
trace.dat
--the default output file for a trace-cmd
session-- is binary.
It can be analyzed directly with trace-cmd
, or with graphical tools like kernelshark
or TraceCompass
.