blob: 077bcc7e20dc83424e0371053d753b8d75a28c50 [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]
32*f*:: filter by regular expression
33
34*p*:: filter by PID
35
36*q*:: quit
37
38*x*:: toggle reporting of stats for child trace events
39
40Press any other key to refresh statistics immediately.
41
Paolo Bonzinifd41b5a2016-05-24 10:41:15 +020042OPTIONS
43-------
44-1::
45--once::
46--batch::
47 run in batch mode for one second
48
49-l::
50--log::
51 run in logging mode (like vmstat)
52
53-t::
54--tracepoints::
55 retrieve statistics from tracepoints
56
57-d::
58--debugfs::
59 retrieve statistics from debugfs
60
Janosch Frankf0cf0402016-05-18 13:26:24 +020061-p<pid>::
62--pid=<pid>::
63 limit statistics to one virtual machine (pid)
64
Paolo Bonzinifd41b5a2016-05-24 10:41:15 +020065-f<fields>::
66--fields=<fields>::
67 fields to display (regex)
68
69-h::
70--help::
71 show help message
72
73SEE ALSO
74--------
75'perf'(1), 'trace-cmd'(1)
76
77AUTHOR
78------
79Stefan Hajnoczi <stefanha@redhat.com>