mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
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: 08d0ce30e0
("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
This commit is contained in:
parent
8a412c5c1c
commit
0f2692ee43
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@
|
|||
#elif defined(__TARGET_ARCH_arm64)
|
||||
#define SYSCALL_WRAPPER 1
|
||||
#define SYS_PREFIX "__arm64_"
|
||||
#elif defined(__TARGET_ARCH_riscv)
|
||||
#define SYSCALL_WRAPPER 1
|
||||
#define SYS_PREFIX "__riscv_"
|
||||
#else
|
||||
#define SYSCALL_WRAPPER 0
|
||||
#define SYS_PREFIX "__se_"
|
||||
|
|
Loading…
Reference in a new issue