linux/tools/testing/selftests/arm64
Leo Yan bb7235e226 kselftest/arm64: Include <asm/ptrace.h> for user_gcs definition
kselftest includes kernel uAPI headers with option:

  -isystem $(top_srcdir)/usr/include

Include <asm/ptrace.h> in libc-gcs.c for the definition of struct
user_gcs from the uAPI headers, and remove the redundant definition in
gcs-util.h. This fixes a compilation error on systems where the
toolchain defines NT_ARM_GCS.

Fixes: a505a52b4e ("kselftest/arm64: Add a GCS test program built with the system libc")
Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2026-05-01 15:17:59 +01:00
..
abi selftests/arm64: Implement cmpbr_sigill() to hwcap test 2026-03-14 16:58:16 +00:00
bti kselftest/arm64: Remove extra blank line 2025-09-08 16:01:21 +01:00
fp kselftest/arm64: Raise default number of loops in fp-pidbench 2026-01-28 13:09:30 +00:00
gcs kselftest/arm64: Include <asm/ptrace.h> for user_gcs definition 2026-05-01 15:17:59 +01:00
mte kselftest/arm64: Add missing file in .gitignore 2026-01-26 14:29:06 +00:00
pauth selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
signal kselftest: arm64: Check access to GCS after mprotect(PROT_NONE) 2026-02-25 19:53:58 +00:00
tags selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
Makefile kselftest/arm64: Support FORCE_TARGETS 2026-01-05 21:16:46 +00:00
README kselftest: arm64: extend toplevel skeleton Makefile 2019-11-08 11:10:30 +00:00

KSelfTest ARM64
===============

- These tests are arm64 specific and so not built or run but just skipped
  completely when env-variable ARCH is found to be different than 'arm64'
  and `uname -m` reports other than 'aarch64'.

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

      $ make TARGETS=arm64 kselftest-clean
      $ make TARGETS=arm64 kselftest

      or

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

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

      $ make -C tools/testing/selftests TARGETS=arm64 ARM64_SUBTARGETS="tags signal" \
		INSTALL_PATH=<your-installation-path> install

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