]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftest/bpf: Enable gotox tests for powerpc64
authorAbhishek Dubey <adubey@linux.ibm.com>
Wed, 1 Apr 2026 15:21:33 +0000 (11:21 -0400)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Fri, 3 Apr 2026 08:44:25 +0000 (14:14 +0530)
With gotox instruction and jumptable now supported,
enable corresponding bpf selftest on powerpc.

Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260401152133.42544-5-adubey@linux.ibm.com
tools/testing/selftests/bpf/progs/verifier_gotox.c

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