samples/bpf, selftests/bpf: Use bpf_probe_read_kernel
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 20 Jul 2020 11:48:06 +0000 (13:48 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 21 Jul 2020 20:26:26 +0000 (13:26 -0700)
commite4d9c2320716ea0e9ef59f503ddd8f253a642ddd
tree6f0b5d742197e5600edb95fb3a7fc16f1b4c4335
parent6bd557275ad5a1adaff5082f4e24218ba344e0c0
samples/bpf, selftests/bpf: Use bpf_probe_read_kernel

A handful of samples and selftests fail to build on s390, because
after commit 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}()
only to archs where they work") bpf_probe_read is not available
anymore.

Fix by using bpf_probe_read_kernel.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200720114806.88823-1-iii@linux.ibm.com
samples/bpf/offwaketime_kern.c
samples/bpf/test_overhead_kprobe_kern.c
samples/bpf/tracex1_kern.c
samples/bpf/tracex5_kern.c
tools/bpf/bpftool/skeleton/pid_iter.bpf.c
tools/testing/selftests/bpf/progs/bpf_iter_netlink.c
tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c
tools/testing/selftests/bpf/progs/bpf_iter_tcp6.c
tools/testing/selftests/bpf/progs/bpf_iter_udp4.c
tools/testing/selftests/bpf/progs/bpf_iter_udp6.c