KVM: riscv: selftests: Allow number of interrupts to be configurable
authorAtish Patra <atishp@rivosinc.com>
Mon, 3 Mar 2025 22:53:09 +0000 (14:53 -0800)
committerAnup Patel <anup@brainfault.org>
Thu, 6 Mar 2025 04:27:07 +0000 (09:57 +0530)
commitee4e778c5802444f17beff010762a3263d2ff2bc
tree92cd4549f1795432a8d6fc2338a3422d2b57a4eb
parent4b506adfea902ab56af3cd4129cb2ebfa5051190
KVM: riscv: selftests: Allow number of interrupts to be configurable

It is helpful to vary the number of the LCOFI interrupts generated
by the overflow test. Allow additional argument for overflow test
to accommodate that. It can be easily cross-validated with
/proc/interrupts output in the host.

Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250303-kvm_pmu_improve-v2-4-41d177e45929@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/riscv/sbi_pmu_test.c