]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c49b77db4a887fb230445ff547104070afe5588
tree03abcc6154ccbfc4a77fb4beb1bfecb954181fb3
parent63433aa6d0e739cf2afad75742003c018cf3cb74
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]