OSDN Git Service

selftests/bpf: Extract syscall wrapper
authorKenta Tada <Kenta.Tada@sony.com>
Mon, 24 Jan 2022 14:16:20 +0000 (23:16 +0900)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 25 Jan 2022 05:03:57 +0000 (21:03 -0800)
commit78a2054156dd6265619b230cc5372b74f9ba5233
treea30f1e9f9c2a434d450a57be8c91b44ee8688b6b
parentfc76387003d6907e298fd6b87f13847c4edddab1
selftests/bpf: Extract syscall wrapper

Extract the helper to set up SYS_PREFIX for fentry and kprobe selftests
that use __x86_sys_* attach functions.

Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220124141622.4378-2-Kenta.Tada@sony.com
tools/testing/selftests/bpf/progs/bpf_misc.h [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_probe_user.c