public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] selftests/bpf: Define SYS_PREFIX for powerpc
@ 2025-01-31  7:05 Saket Kumar Bhaskar
  2025-01-31  7:05 ` [PATCH v2 2/2] selftests/bpf: Select NUMA_NO_NODE to create map Saket Kumar Bhaskar
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Saket Kumar Bhaskar @ 2025-01-31  7:05 UTC (permalink / raw)
  To: bpf, linux-kselftest, linux-kernel
  Cc: ast, hbathini, andrii, daniel, davem, kuba, hawk, martin.lau,
	eddyz87, song, yonghong.song, john.fastabend, kpsingh, sdf,
	haoluo, jolsa, mykolal, shuah

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>
---
 tools/testing/selftests/bpf/progs/bpf_misc.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/testing/selftests/bpf/progs/bpf_misc.h b/tools/testing/selftests/bpf/progs/bpf_misc.h
index f45f4352f..02c9f7964 100644
--- a/tools/testing/selftests/bpf/progs/bpf_misc.h
+++ b/tools/testing/selftests/bpf/progs/bpf_misc.h
@@ -172,6 +172,9 @@
 #elif defined(__TARGET_ARCH_riscv)
 #define SYSCALL_WRAPPER 1
 #define SYS_PREFIX "__riscv_"
+#elif defined(__TARGET_ARCH_powerpc)
+#define SYSCALL_WRAPPER 1
+#define SYS_PREFIX ""
 #else
 #define SYSCALL_WRAPPER 0
 #define SYS_PREFIX "__se_"
-- 
2.43.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-12  0:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-31  7:05 [PATCH v2 1/2] selftests/bpf: Define SYS_PREFIX for powerpc Saket Kumar Bhaskar
2025-01-31  7:05 ` [PATCH v2 2/2] selftests/bpf: Select NUMA_NO_NODE to create map Saket Kumar Bhaskar
2025-01-31 23:21   ` Yonghong Song
2025-01-31 23:20 ` [PATCH v2 1/2] selftests/bpf: Define SYS_PREFIX for powerpc Yonghong Song
2025-02-12  0:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox