Skip to content

Commit e1f7a0e

Browse files
Abhishek Dubeymaddy-kerneldev
authored andcommitted
selftest/bpf: Enable gotox tests for powerpc64
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
1 parent a32325c commit e1f7a0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/bpf/progs/verifier_gotox.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "bpf_misc.h"
77
#include "../../../include/linux/filter.h"
88

9-
#if defined(__TARGET_ARCH_x86) || defined(__TARGET_ARCH_arm64)
9+
#if defined(__TARGET_ARCH_x86) || defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_powerpc)
1010

1111
#define DEFINE_SIMPLE_JUMP_TABLE_PROG(NAME, SRC_REG, OFF, IMM, OUTCOME) \
1212
\
@@ -384,6 +384,6 @@ jt0_%=: \
384384
: __clobber_all);
385385
}
386386

387-
#endif /* __TARGET_ARCH_x86 || __TARGET_ARCH_arm64 */
387+
#endif /* __TARGET_ARCH_x86 || __TARGET_ARCH_arm64 || __TARGET_ARCH_powerpc*/
388388

389389
char _license[] SEC("license") = "GPL";

0 commit comments

Comments
 (0)