linux/tools/testing/selftests/riscv
Thomas Huth 2464ac8a6f kselftest/riscv: Replace __ASSEMBLY__ with __ASSEMBLER__
While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembly code, __ASSEMBLY__ is a
macro that only gets defined by the Makefiles in the kernel.
This can be very confusing when switching between userspace
and kernelspace coding, or when dealing with uapi headers that
rather should use __ASSEMBLER__ instead. So let's standardize now
on the __ASSEMBLER__ macro that is provided by the compilers.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://patch.msgid.link/20260813075304.75988-1-thuth@redhat.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2026-09-01 19:20:23 -06:00
..
abi selftests/riscv: fix compiler output flag spacing in all Makefiles 2026-06-06 20:17:52 -06:00
cfi kselftest/riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ 2026-09-01 19:20:23 -06:00
hwprobe riscv: report Zfhmin/Zvfhmin when Zfh/Zvfh are present 2026-09-01 19:19:44 -06:00
mm selftests/riscv: fix compiler output flag spacing in all Makefiles 2026-06-06 20:17:52 -06:00
sigreturn selftests/riscv: fix compiler output flag spacing in all Makefiles 2026-06-06 20:17:52 -06:00
vector selftests/riscv: ptrace: Fix memory leak of regset_data in vector tests 2026-07-10 09:32:35 -06:00
Makefile kselftest/riscv: add kselftest for user mode CFI 2026-01-29 02:38:40 -07:00
README selftests: riscv: Add README for RISC-V KSelfTest 2025-09-18 19:26:07 -06:00

KSelfTest RISC-V
================

- These tests are riscv specific and so not built or run but just skipped
  completely when env-variable ARCH is found to be different than 'riscv'.

- Holding true the above, RISC-V KSFT tests can be run within the
  KSelfTest framework using standard Linux top-level-makefile targets:

      $ make TARGETS=riscv kselftest-clean
      $ make TARGETS=riscv kselftest

      or

      $ make -C tools/testing/selftests TARGETS=riscv \
		INSTALL_PATH=<your-installation-path> install

      or, alternatively, only specific riscv/ subtargets can be picked:

      $ make -C tools/testing/selftests TARGETS=riscv RISCV_SUBTARGETS="mm vector" \
		INSTALL_PATH=<your-installation-path> install

   Further details on building and running KSFT can be found in:
     Documentation/dev-tools/kselftest.rst