kselftest/arm64: add DEF_SIGHANDLER_FUNC() and DEF_INST_RAISE_SIG() helpers
authorZeng Heng <zengheng4@huawei.com>
Tue, 8 Aug 2023 13:40:34 +0000 (21:40 +0800)
committerWill Deacon <will@kernel.org>
Fri, 11 Aug 2023 11:24:16 +0000 (12:24 +0100)
commit71b634aba36201fa24e214db1be7ce50cf6e1863
treee6c6bd1794afbce4527817bb9746e9b37799e617
parent09d2e95a04ad6fd258082ea3ba9a5bf52bbd5229
kselftest/arm64: add DEF_SIGHANDLER_FUNC() and DEF_INST_RAISE_SIG() helpers

Add macro definition functions DEF_SIGHANDLER_FUNC() and
DEF_INST_RAISE_SIG() helpers.

Furthermore, there is no need to modify the default SIGILL handling
function throughout the entire testing lifecycle in the main() function.
It is reasonable to narrow the scope to the context of the sig_fn
function only.

This is a pre-patch for the subsequent SIGBUS handler patch.

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