Skip to content

Commit 0f2692e

Browse files
bjorn-rivosanakryiko
authored andcommitted
selftests/bpf: Define SYS_PREFIX for riscv
SYS_PREFIX was missing for a RISC-V, which made a couple of kprobe tests fail. Add missing SYS_PREFIX for RISC-V. Fixes: 08d0ce3 ("riscv: Implement syscall wrappers") Signed-off-by: Björn Töpel <bjorn@rivosinc.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Link: https://lore.kernel.org/bpf/20231004110905.49024-3-bjorn@kernel.org
1 parent 8a412c5 commit 0f2692e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@
9999
#elif defined(__TARGET_ARCH_arm64)
100100
#define SYSCALL_WRAPPER 1
101101
#define SYS_PREFIX "__arm64_"
102+
#elif defined(__TARGET_ARCH_riscv)
103+
#define SYSCALL_WRAPPER 1
104+
#define SYS_PREFIX "__riscv_"
102105
#else
103106
#define SYSCALL_WRAPPER 0
104107
#define SYS_PREFIX "__se_"

0 commit comments

Comments
 (0)