kvmexit.py: introduce a tool to show kvm exit reasons and counts
authorFei Li <lifei.shirley@bytedance.com>
Mon, 31 Aug 2020 13:35:33 +0000 (21:35 +0800)
committeryonghong-song <ys114321@gmail.com>
Sun, 11 Jul 2021 23:25:04 +0000 (16:25 -0700)
commit423656396e3c8454924daefc9a8dc0496414d748
tree3ea63522cae6b6b4dc02dbb0051fcf819ab9ce64
parent45352512b45c04bbf7ede90a9c626a3f3aa7ac5f
kvmexit.py: introduce a tool to show kvm exit reasons and counts

Considering virtual machines' frequent exits can cause performance
problems, introduce a tool to show kvm exit reasons and counts, so
that the most frequent exited reasons could be located, reduced, or
even avoided.

For better performance, this tool employs a percpu array and percpu
hash in bpf to store exit reason and its counts. Besides, the bcc
python provides aggregation and various custom output. For more
background, realization and examples, please see kvmexit_example.txt
and man/man8/kvmexit.8 for more reference.

Signed-off-by: Fei Li <lifei.shirley@bytedance.com>
README.md
man/man8/kvmexit.8 [new file with mode: 0644]
tools/kvmexit.py [new file with mode: 0755]
tools/kvmexit_example.txt [new file with mode: 0644]