selftests/bpf: fix perf_buffer on s390
perf_buffer test fails for exactly the same reason test_attach_probe
used to fail: different nanosleep syscall kprobe name.
Reuse the test_attach_probe fix.
Fixes: ee5cf82ce0
("selftests/bpf: test perf buffer API")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:

committed by
Alexei Starovoitov

parent
9d1f62a6dc
commit
1cb59a6074
@@ -92,3 +92,11 @@ int compare_map_keys(int map1_fd, int map2_fd);
|
||||
int compare_stack_ips(int smap_fd, int amap_fd, int stack_trace_len);
|
||||
int extract_build_id(char *build_id, size_t size);
|
||||
void *spin_lock_thread(void *arg);
|
||||
|
||||
#ifdef __x86_64__
|
||||
#define SYS_NANOSLEEP_KPROBE_NAME "__x64_sys_nanosleep"
|
||||
#elif defined(__s390x__)
|
||||
#define SYS_NANOSLEEP_KPROBE_NAME "__s390x_sys_nanosleep"
|
||||
#else
|
||||
#define SYS_NANOSLEEP_KPROBE_NAME "sys_nanosleep"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user