1KVM_STAT(1) KVM_STAT(1)
2
3
4
6 kvm_stat - Report KVM kernel module event counters
7
9 kvm_stat [OPTION]...
10
12 kvm_stat prints counts of KVM kernel module trace events. These events
13 signify state transitions such as guest mode entry and exit.
14
15 This tool is useful for observing guest behavior from the host
16 perspective. Often conclusions about performance or buggy behavior can
17 be drawn from the output. While running in regular mode, use any of the
18 keys listed in section Interactive Commands below. Use batch and
19 logging modes for scripting purposes.
20
21 The set of KVM kernel module trace events may be specific to the kernel
22 version or architecture. It is best to check the KVM kernel module
23 source code for the meaning of events.
24
26 b toggle events by guests
27 (debugfs only, honors
28 filters)
29
30 c clear filter
31
32 f filter by regular
33 expression
34
35 g filter by guest name/PID
36
37 h display interactive
38 commands reference
39
40 o toggle sorting order
41 (Total vs CurAvg/s)
42
43 p filter by guest name/PID
44
45 q quit
46
47 r reset stats
48
49 s set update interval
50
51 x toggle reporting of stats
52 for child trace events
53
54 Note: The stats for the
55 parents summarize the
56 respective child trace
57 events
58
59
60 Press any other key to refresh statistics immediately.
61
63 -1, --once, --batch
64 run in batch mode for one second
65
66 -l, --log
67 run in logging mode (like vmstat)
68
69 -t, --tracepoints
70 retrieve statistics from tracepoints
71
72 -d, --debugfs
73 retrieve statistics from debugfs
74
75 -i, --debugfs-include-past
76 include all available data on past events for debugfs
77
78 -p<pid>, --pid=<pid>
79 limit statistics to one virtual machine (pid)
80
81 -g<guest>, --guest=<guest_name>
82 limit statistics to one virtual machine (guest name)
83
84 -f<fields>, --fields=<fields>
85 fields to display (regex), "-f help" for a list of available events
86
87 -h, --help
88 show help message
89
91 perf(1), trace-cmd(1)
92
94 Stefan Hajnoczi <stefanha@redhat.com>
95
96
97
98 06/03/2019 KVM_STAT(1)