diff options
author | Eduard Zingerman <[email protected]> | 2024-08-22 01:41:11 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-08-22 08:35:21 -0700 |
commit | f406026fefa745ff9a3153507cc3b9a87371d954 (patch) | |
tree | 2d275b3c01f07b49e66ad325a3c84678b8770a73 | |
parent | 40609093247b586ee6f8ca8f2b30c7d583c6fd25 (diff) |
selftests/bpf: by default use arch mask allowing all archs
If test case does not specify architecture via __arch_* macro consider
that it should be run for all architectures.
Fixes: 7d743e4c759c ("selftests/bpf: __jited test tag to check disassembly after jit")
Signed-off-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
-rw-r--r-- | tools/testing/selftests/bpf/test_loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_loader.c b/tools/testing/selftests/bpf/test_loader.c index b229dd013355..2ca9b73e5a6b 100644 --- a/tools/testing/selftests/bpf/test_loader.c +++ b/tools/testing/selftests/bpf/test_loader.c @@ -543,7 +543,7 @@ static int parse_test_spec(struct test_loader *tester, } } - spec->arch_mask = arch_mask; + spec->arch_mask = arch_mask ?: -1; if (spec->mode_mask == 0) spec->mode_mask = PRIV; |