Skip to content

Commit b55b775

Browse files
bjorn-rivosanakryiko
authored andcommitted
selftests/bpf: Define SYS_NANOSLEEP_KPROBE_NAME for riscv
Add missing sys_nanosleep name for RISC-V, which is used by some tests (e.g. attach_probe). 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-4-bjorn@kernel.org
1 parent 0f2692e commit b55b775

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/testing/selftests/bpf/test_progs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ int get_bpf_max_tramp_links(void);
417417
#define SYS_NANOSLEEP_KPROBE_NAME "__s390x_sys_nanosleep"
418418
#elif defined(__aarch64__)
419419
#define SYS_NANOSLEEP_KPROBE_NAME "__arm64_sys_nanosleep"
420+
#elif defined(__riscv)
421+
#define SYS_NANOSLEEP_KPROBE_NAME "__riscv_sys_nanosleep"
420422
#else
421423
#define SYS_NANOSLEEP_KPROBE_NAME "sys_nanosleep"
422424
#endif

0 commit comments

Comments
 (0)