]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests: bpf: Enable gotox tests from arm64
authorPuranjay Mohan <puranjay@kernel.org>
Mon, 17 Nov 2025 13:07:31 +0000 (13:07 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 22 Nov 2025 00:40:21 +0000 (16:40 -0800)
arm64 JIT now supports gotox instruction and jumptables, so run tests in
verifier_gotox.c for arm64.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Reviewed-by: Anton Protopopov <a.s.protopopov@gmail.com>
Link: https://lore.kernel.org/r/20251117130732.11107-4-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_gotox.c

index b6710f134a1d3a996d8fef597c22e15c04aabce3..536c9f3e217035205ea40941207a36cdd68790c7 100644 (file)
@@ -6,7 +6,7 @@
 #include "bpf_misc.h"
 #include "../../../include/linux/filter.h"
 
-#ifdef __TARGET_ARCH_x86
+#if defined(__TARGET_ARCH_x86) || defined(__TARGET_ARCH_arm64)
 
 #define DEFINE_SIMPLE_JUMP_TABLE_PROG(NAME, SRC_REG, OFF, IMM, OUTCOME)        \
                                                                        \
@@ -384,6 +384,6 @@ jt0_%=:                                                             \
        : __clobber_all);
 }
 
-#endif /* __TARGET_ARCH_x86 */
+#endif /* __TARGET_ARCH_x86 || __TARGET_ARCH_arm64 */
 
 char _license[] SEC("license") = "GPL";