aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2024-08-22 01:41:11 -0700
committerAlexei Starovoitov <ast@kernel.org>2024-08-22 08:35:21 -0700
commitf406026fefa745ff9a3153507cc3b9a87371d954 (patch)
tree2d275b3c01f07b49e66ad325a3c84678b8770a73 /tools
parentbpf: allow bpf_fastcall for bpf_cast_to_kern_ctx and bpf_rdonly_cast (diff)
downloadwireguard-linux-f406026fefa745ff9a3153507cc3b9a87371d954.tar.xz
wireguard-linux-f406026fefa745ff9a3153507cc3b9a87371d954.zip
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 <eddyz87@gmail.com> Link: https://lore.kernel.org/r/20240822084112.3257995-6-eddyz87@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/bpf/test_loader.c2
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;