]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit813dd9699d1a2c0e001762688c832734a0261a47
tree074a905be90e01e8d5ea77462471940ca63c51f7
parentd3c0116c98d28c8331310b980b02988aa72b63f9
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