Skip to content

Commit d4e4dc4

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: signal: Add SVE to the set of features we can check for
Allow testcases for SVE signal handling to flag the dependency and be skipped on systems without SVE support. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 0c69bd2 commit d4e4dc4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tools/testing/selftests/arm64/signal/test_signals.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@
3333
*/
3434
enum {
3535
FSSBS_BIT,
36+
FSVE_BIT,
3637
FMAX_END
3738
};
3839

3940
#define FEAT_SSBS (1UL << FSSBS_BIT)
41+
#define FEAT_SVE (1UL << FSVE_BIT)
4042

4143
/*
4244
* A descriptor used to describe and configure a test case.

tools/testing/selftests/arm64/signal/test_signals_utils.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static int sig_copyctx = SIGTRAP;
2626

2727
static char const *const feats_names[FMAX_END] = {
2828
" SSBS ",
29+
" SVE ",
2930
};
3031

3132
#define MAX_FEATS_SZ 128
@@ -263,6 +264,8 @@ int test_init(struct tdescr *td)
263264
*/
264265
if (getauxval(AT_HWCAP) & HWCAP_SSBS)
265266
td->feats_supported |= FEAT_SSBS;
267+
if (getauxval(AT_HWCAP) & HWCAP_SVE)
268+
td->feats_supported |= FEAT_SVE;
266269
if (feats_ok(td))
267270
fprintf(stderr,
268271
"Required Features: [%s] supported\n",

0 commit comments

Comments
 (0)