kselftest/arm64: add test item that support to capturing the SIGBUS signal
authorZeng Heng <zengheng4@huawei.com>
Tue, 8 Aug 2023 13:40:35 +0000 (21:40 +0800)
committerWill Deacon <will@kernel.org>
Fri, 11 Aug 2023 11:24:16 +0000 (12:24 +0100)
commitfd49cf088867f8fad7515b5424d301ca5d147070
tree6039805b6c2db558a97f2695a3a2940e2fce2497
parent71b634aba36201fa24e214db1be7ce50cf6e1863
kselftest/arm64: add test item that support to capturing the SIGBUS signal

Some enhanced features, such as the LSE2 feature, do not result in
SILLILL if LSE2 is missing and LSE is present, but will generate a
SIGBUS exception when atomic access unaligned.

Therefore, we add test item to test this type of features.

Notice that testing for SIGBUS only makes sense after make sure that
the instruction does not cause a SIGILL signal.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230808134036.668954-5-zengheng4@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/hwcap.c