Skip to content

Commit

Permalink
kselftest/arm64: signal: Skip SVE signal test if not enough VLs suppo…
Browse files Browse the repository at this point in the history
…rted

On platform where SVE is supported but there are less than 2 VLs available
the signal SVE change test should be skipped instead of failing.

Reported-by: Andre Przywara <[email protected]>
Tested-by: Andre Przywara <[email protected]>
Cc: Mark Brown <[email protected]>
Signed-off-by: Cristian Marussi <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
freefall75 authored and ctmarinas committed Jun 2, 2022
1 parent 73e2d82 commit 78c09c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* supported and is expected to segfault.
*/

#include <kselftest.h>
#include <signal.h>
#include <ucontext.h>
#include <sys/prctl.h>
Expand Down Expand Up @@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td)
/* We need at least two VLs */
if (nvls < 2) {
fprintf(stderr, "Only %d VL supported\n", nvls);
td->result = KSFT_SKIP;
return false;
}

Expand Down

0 comments on commit 78c09c0

Please sign in to comment.