OSDN Git Service

selftests: Test the new RISC-V hwprobe interface
authorEvan Green <evan@rivosinc.com>
Fri, 7 Apr 2023 23:11:02 +0000 (16:11 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 18 Apr 2023 22:48:17 +0000 (15:48 -0700)
commit287dcc2b0c831d3e3887421f68e3db6b8b8f4eb1
tree5e3ecd881b328d670c48322cddb57acd35385800
parent62a31d6e38bd0faef7c956b358d651f7bdc4ae0c
selftests: Test the new RISC-V hwprobe interface

This adds a test for the recently added RISC-V interface for probing
hardware capabilities.  It happens to be the first selftest we have for
RISC-V, so I've added some infrastructure for those as well.

Co-developed-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Evan Green <evan@rivosinc.com>
Link: https://lore.kernel.org/r/20230407231103.2622178-6-evan@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
tools/testing/selftests/Makefile
tools/testing/selftests/riscv/Makefile [new file with mode: 0644]
tools/testing/selftests/riscv/hwprobe/Makefile [new file with mode: 0644]
tools/testing/selftests/riscv/hwprobe/hwprobe.c [new file with mode: 0644]
tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S [new file with mode: 0644]