kselftest/arm64: Add simple hwcap validation
authorMark Brown <broonie@kernel.org>
Mon, 29 Aug 2022 15:46:02 +0000 (16:46 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Sep 2022 17:30:42 +0000 (18:30 +0100)
commit7a9bcaaad5f17cc5c4cf882a25cd3efb2b3b8b6c
tree03abcc6154ccbfc4a77fb4beb1bfecb954181fb3
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
kselftest/arm64: Add simple hwcap validation

Add some trivial hwcap validation which checks that /proc/cpuinfo and
AT_HWCAP agree with each other and can verify that for extensions that can
generate a SIGILL due to adding new instructions one appears or doesn't
appear as expected. I've added SVE and SME, other capabilities can be
added later if this gets merged.

This isn't super exciting but on the other hand took very little time to
write and should be handy when verifying that you wired up AT_HWCAP
properly.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220829154602.827275-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/.gitignore
tools/testing/selftests/arm64/abi/Makefile
tools/testing/selftests/arm64/abi/hwcap.c [new file with mode: 0644]