RISCV: KVM: add tracepoints for entry and exit events
authorShenlin Liang <liangshenlin@eswincomputing.com>
Mon, 22 Apr 2024 08:08:32 +0000 (08:08 +0000)
committerAnup Patel <anup@brainfault.org>
Wed, 26 Jun 2024 13:07:36 +0000 (18:37 +0530)
commit91195a90f1d1ae72a1a49681ee30118c9f7ab8c3
treefa63ace69c6605f153083219180ba45b43dffcf8
parent3385339296d14fa16440aac87ee5b02dd4a47d08
RISCV: KVM: add tracepoints for entry and exit events

Like other architectures, RISCV KVM also needs to add these event
tracepoints to count the number of times kvm guest entry/exit.

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