selftests/bpf: use BPF_KSYSCALL and SEC("ksyscall") in selftests
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 14 Jul 2022 07:07:55 +0000 (00:07 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 19 Jul 2022 16:33:18 +0000 (09:33 -0700)
commitd814ed62d3d24eb5c5f904b897e0414c1ccb5740
tree074a905be90e01e8d5ea77462471940ca63c51f7
parent708ac5bea0ce51fa1d70a44a1f817c8b02787c1e
selftests/bpf: use BPF_KSYSCALL and SEC("ksyscall") in selftests

Convert few selftest that used plain SEC("kprobe") with arch-specific
syscall wrapper prefix to ksyscall/kretsyscall and corresponding
BPF_KSYSCALL macro. test_probe_user.c is especially benefiting from this
simplification.

Tested-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220714070755.3235561-6-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/bpf_syscall_macro.c
tools/testing/selftests/bpf/progs/test_attach_probe.c
tools/testing/selftests/bpf/progs/test_probe_user.c