Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/bpf: Define SYS_PREFIX for powerpc

Since commit 7e92e01b7245 ("powerpc: Provide syscall wrapper")
landed in v6.1, syscall wrapper is enabled on powerpc. Commit
94746890202c ("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

authored by

Saket Kumar Bhaskar and committed by
Andrii Nakryiko
650f20bb 17c3dc50

+3
+3
tools/testing/selftests/bpf/progs/bpf_misc.h
··· 172 172 #elif defined(__TARGET_ARCH_riscv) 173 173 #define SYSCALL_WRAPPER 1 174 174 #define SYS_PREFIX "__riscv_" 175 + #elif defined(__TARGET_ARCH_powerpc) 176 + #define SYSCALL_WRAPPER 1 177 + #define SYS_PREFIX "" 175 178 #else 176 179 #define SYSCALL_WRAPPER 0 177 180 #define SYS_PREFIX "__se_"