RISC-V: selftests: Add which-cpus hwprobe test
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 22 Nov 2023 16:47:05 +0000 (17:47 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 3 Jan 2024 11:36:50 +0000 (03:36 -0800)
commitef7d6abb2cf57a18d34b332f0865c4d03bd810a3
tree8486506e89b28f2c893a747d6a3de9e6ec869213
parente178bf146e4b8c774a7b00aa2419e400f4f7894f
RISC-V: selftests: Add which-cpus hwprobe test

Test the RISCV_HWPROBE_WHICH_CPUS flag of hwprobe. The test also
has a command line interface in order to get the cpu list for
arbitrary hwprobe pairs.

Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20231122164700.127954-10-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
tools/testing/selftests/riscv/hwprobe/Makefile
tools/testing/selftests/riscv/hwprobe/which-cpus.c [new file with mode: 0644]