]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf kvm/riscv: Port perf kvm stat to RISC-V
authorShenlin Liang <liangshenlin@eswincomputing.com>
Mon, 22 Apr 2024 08:08:33 +0000 (08:08 +0000)
committerAnup Patel <anup@brainfault.org>
Wed, 26 Jun 2024 13:07:38 +0000 (18:37 +0530)
commitda7b1b525e972b8c5b16640fa5b2ff2497b5c652
tree9e033257538526662dbab8d6ad4bae09a21584c8
parent91195a90f1d1ae72a1a49681ee30118c9f7ab8c3
perf kvm/riscv: Port perf kvm stat to RISC-V

'perf kvm stat report/record' generates a statistical analysis of KVM
events and can be used to analyze guest exit reasons.

"report" reports statistical analysis of guest exit events.

To record kvm events on the host:
 # perf kvm stat record -a

To report kvm VM EXIT events:
 # perf kvm stat report --event=vmexit

Signed-off-by: Shenlin Liang <liangshenlin@eswincomputing.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240422080833.8745-3-liangshenlin@eswincomputing.com
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/perf/arch/riscv/Makefile
tools/perf/arch/riscv/util/Build
tools/perf/arch/riscv/util/kvm-stat.c [new file with mode: 0644]
tools/perf/arch/riscv/util/riscv_exception_types.h [new file with mode: 0644]