Skip to content

Commit 650f20b

Browse files
Saket Kumar Bhaskaranakryiko
authored andcommitted
selftests/bpf: Define SYS_PREFIX for powerpc
Since commit 7e92e01 ("powerpc: Provide syscall wrapper") landed in v6.1, syscall wrapper is enabled on powerpc. Commit 9474689 ("powerpc: Don't add __powerpc_ prefix to syscall entry points") , that drops the prefix to syscall entry points, also landed in the same release. So, add the missing empty SYS_PREFIX prefix definition for powerpc, to fix some fentry and kprobe selftests. Signed-off-by: Saket Kumar Bhaskar <skb99@linux.ibm.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/bpf/7192d6aa9501115dc242435970df82b3d190f257.1738302337.git.skb99@linux.ibm.com
1 parent 17c3dc5 commit 650f20b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testing/selftests/bpf/progs/bpf_misc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
#elif defined(__TARGET_ARCH_riscv)
173173
#define SYSCALL_WRAPPER 1
174174
#define SYS_PREFIX "__riscv_"
175+
#elif defined(__TARGET_ARCH_powerpc)
176+
#define SYSCALL_WRAPPER 1
177+
#define SYS_PREFIX ""
175178
#else
176179
#define SYSCALL_WRAPPER 0
177180
#define SYS_PREFIX "__se_"

0 commit comments

Comments
 (0)