projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2692e
)
selftests/bpf: Define SYS_NANOSLEEP_KPROBE_NAME for riscv
author
Björn Töpel
<bjorn@rivosinc.com>
Wed, 4 Oct 2023 11:09:05 +0000
(13:09 +0200)
committer
Andrii Nakryiko
<andrii@kernel.org>
Wed, 4 Oct 2023 20:19:44 +0000
(13:19 -0700)
Add missing sys_nanosleep name for RISC-V, which is used by some tests
(e.g. attach_probe).
Fixes:
08d0ce30e0e4
("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
tools/testing/selftests/bpf/test_progs.h
patch
|
blob
|
blame
|
history
diff --git
a/tools/testing/selftests/bpf/test_progs.h
b/tools/testing/selftests/bpf/test_progs.h
index 77bd492c6024819358b8e2232ecdef7f3c2e0654..2f9f6f250f171468e18d357648990a7c1ab3af49 100644
(file)
--- a/
tools/testing/selftests/bpf/test_progs.h
+++ b/
tools/testing/selftests/bpf/test_progs.h
@@
-417,6
+417,8
@@
int get_bpf_max_tramp_links(void);
#define SYS_NANOSLEEP_KPROBE_NAME "__s390x_sys_nanosleep"
#elif defined(__aarch64__)
#define SYS_NANOSLEEP_KPROBE_NAME "__arm64_sys_nanosleep"
+#elif defined(__riscv)
+#define SYS_NANOSLEEP_KPROBE_NAME "__riscv_sys_nanosleep"
#else
#define SYS_NANOSLEEP_KPROBE_NAME "sys_nanosleep"
#endif