Skip to content

Commit 3eb6d28

Browse files
puranjaymohanKernel Patches Daemon
authored andcommitted
selftests: bpf: Enable gotox tests from arm64
arm64 JIT now supports gotox instruction and jumptables, so run tests in verifier_gotox.c for arm64. Signed-off-by: Puranjay Mohan <[email protected]> Reviewed-by: Anton Protopopov <[email protected]>
1 parent c272943 commit 3eb6d28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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-
#ifdef __TARGET_ARCH_x86
9+
#if defined(__TARGET_ARCH_x86) || defined(__TARGET_ARCH_arm64)
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 */
387+
#endif /* __TARGET_ARCH_x86 || __TARGET_ARCH_arm64 */
388388

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

0 commit comments

Comments
 (0)