6 kvm_stat - Report KVM kernel module event counters
11 'kvm_stat' [OPTION]...
15 kvm_stat prints counts of KVM kernel module trace events. These events signify
16 state transitions such as guest mode entry and exit.
18 This tool is useful for observing guest behavior from the host perspective.
19 Often conclusions about performance or buggy behavior can be drawn from the
21 While running in regular mode, use any of the keys listed in section
22 'Interactive Commands' below.
23 Use batch and logging modes for scripting purposes.
25 The set of KVM kernel module trace events may be specific to the kernel version
26 or architecture. It is best to check the KVM kernel module source code for the
32 *b*:: toggle events by guests (debugfs only, honors filters)
36 *f*:: filter by regular expression
37 :: *Note*: Child events pull in their parents, and parents' stats summarize
38 all child events, not just the filtered ones
40 *g*:: filter by guest name/PID
42 *h*:: display interactive commands reference
44 *o*:: toggle sorting order (Total vs CurAvg/s)
46 *p*:: filter by guest name/PID
52 *s*:: set update interval
54 *x*:: toggle reporting of stats for child trace events
55 :: *Note*: The stats for the parents summarize the respective child trace
58 Press any other key to refresh statistics immediately.
65 run in batch mode for one second
69 run in logging mode (like vmstat)
73 retrieve statistics from tracepoints
77 retrieve statistics from debugfs
80 --debugfs-include-past::
81 include all available data on past events for debugfs
85 limit statistics to one virtual machine (pid)
88 --guest=<guest_name>::
89 limit statistics to one virtual machine (guest name)
93 fields to display (regex), "-f help" for a list of available events
101 'perf'(1), 'trace-cmd'(1)
105 Stefan Hajnoczi <stefanha@redhat.com>