selftests/bpf: Define SYS_NANOSLEEP_KPROBE_NAME for aarch64
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 4 Apr 2022 14:21:01 +0000 (16:21 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 4 Apr 2022 21:57:29 +0000 (14:57 -0700)
commitd298761746d59ca169dfe68b4d0a983c3053573b
tree42bc7be3a41d1fbddd8ede9ad1074dbb8ca9f696
parent7224a0737c46cb7a385dc75f1c2e1c8e783e8adb
selftests/bpf: Define SYS_NANOSLEEP_KPROBE_NAME for aarch64

attach_probe selftest fails on aarch64 with `failed to create kprobe
'sys_nanosleep+0x0' perf event: No such file or directory`. This is
because, like on several other architectures, nanosleep has a prefix.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/bpf/20220404142101.27900-1-iii@linux.ibm.com
tools/testing/selftests/bpf/test_progs.h