]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: fix attach_probe on s390
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 12 Jul 2019 13:41:42 +0000 (15:41 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Jul 2019 21:09:40 +0000 (23:09 +0200)
commit025c0c0917b78f21e3aaffecda75968d54172095
tree37c2ac0d2dcf6104a5daab39481837e74d69e2ca
parent896bcc908a2f422acf604ad0717aee593f3e823f
selftests/bpf: fix attach_probe on s390

attach_probe test fails, because it cannot install a kprobe on a
non-existent sys_nanosleep symbol.

Use the correct symbol name for the nanosleep syscall on 64-bit s390.
Don't bother adding one for 31-bit mode, since tests are compiled only
in 64-bit mode.

Fixes: 1e8611bbdfc9 ("selftests/bpf: add kprobe/uprobe selftests")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/prog_tests/attach_probe.c