blob: cc019b09e0f541a5cf5f3e80fe6235923dbee9d3 [file] [log] [blame]
Paolo Bonzinifd41b5a2016-05-24 10:41:15 +02001kvm_stat(1)
2===========
3
4NAME
5----
6kvm_stat - Report KVM kernel module event counters
7
8SYNOPSIS
9--------
10[verse]
11'kvm_stat' [OPTION]...
12
13DESCRIPTION
14-----------
15kvm_stat prints counts of KVM kernel module trace events. These events signify
16state transitions such as guest mode entry and exit.
17
18This tool is useful for observing guest behavior from the host perspective.
19Often conclusions about performance or buggy behavior can be drawn from the
20output.
Stefan Raspl1eaa2f92017-03-10 13:40:07 +010021While running in regular mode, use any of the keys listed in section
22'Interactive Commands' below.
23Use batch and logging modes for scripting purposes.
Paolo Bonzinifd41b5a2016-05-24 10:41:15 +020024
25The set of KVM kernel module trace events may be specific to the kernel version
26or architecture. It is best to check the KVM kernel module source code for the
27meaning of events.
28
Stefan Raspl1eaa2f92017-03-10 13:40:07 +010029INTERACTIVE COMMANDS
30--------------------
31[horizontal]
Stefan Raspl44430842017-03-10 13:40:14 +010032*c*:: clear filter
33
Stefan Raspl1eaa2f92017-03-10 13:40:07 +010034*f*:: filter by regular expression
35
Stefan Rasplf9ff1082017-03-10 13:40:13 +010036*g*:: filter by guest name
37
Stefan Raspl1fdea7b2017-06-07 21:08:38 +020038*h*:: display interactive commands reference
39
Stefan Raspl1eaa2f92017-03-10 13:40:07 +010040*p*:: filter by PID
41
42*q*:: quit
43
Stefan Raspl9f114a02017-03-10 13:40:15 +010044*r*:: reset stats
45
Stefan Raspl64eefad2017-06-07 21:08:39 +020046*s*:: set update interval
47
Stefan Raspl1eaa2f92017-03-10 13:40:07 +010048*x*:: toggle reporting of stats for child trace events
49
50Press any other key to refresh statistics immediately.
51
Paolo Bonzinifd41b5a2016-05-24 10:41:15 +020052OPTIONS
53-------
54-1::
55--once::
56--batch::
57 run in batch mode for one second
58
59-l::
60--log::
61 run in logging mode (like vmstat)
62
63-t::
64--tracepoints::
65 retrieve statistics from tracepoints
66
67-d::
68--debugfs::
69 retrieve statistics from debugfs
70
Janosch Frankf0cf0402016-05-18 13:26:24 +020071-p<pid>::
72--pid=<pid>::
73 limit statistics to one virtual machine (pid)
74
Stefan Rasplf9ff1082017-03-10 13:40:13 +010075-g<guest>::
76--guest=<guest_name>::
77 limit statistics to one virtual machine (guest name)
78
Paolo Bonzinifd41b5a2016-05-24 10:41:15 +020079-f<fields>::
80--fields=<fields>::
81 fields to display (regex)
82
83-h::
84--help::
85 show help message
86
87SEE ALSO
88--------
89'perf'(1), 'trace-cmd'(1)
90
91AUTHOR
92------
93Stefan Hajnoczi <stefanha@redhat.com>