KVM: riscv: selftests: Add commandline option for SBI PMU test
authorAtish Patra <atishp@rivosinc.com>
Sat, 20 Apr 2024 15:17:40 +0000 (08:17 -0700)
committerAnup Patel <anup@brainfault.org>
Fri, 26 Apr 2024 07:44:15 +0000 (13:14 +0530)
commit5ef2f3d4e747c7851678ad2b70e37be886a8c9eb
tree580f9eebebba1c6d6d9704e28424cecd8cd04567
parent4ace2573d13ee22ebc5bb90efca6c2c9b27b2ef8
KVM: riscv: selftests: Add commandline option for SBI PMU test

SBI PMU test comprises of multiple tests and user may want to run
only a subset depending on the platform. The most common case would
be to run all to validate all the tests. However, some platform may
not support all events or all ISA extensions.

The commandline option allows user to disable any set of tests if
they want to.

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