selftests/bpf: Add fentry/fexit/fmod_ret selftest for kernel module
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Dec 2020 20:46:34 +0000 (12:46 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Dec 2020 01:38:21 +0000 (17:38 -0800)
commit1e38abefcfd65f3ef7b12895dfd48db80aca28da
treef4852f307e973fa926c8f6093af3e3b9dc4c8e47
parentbc9ed69c79ae7577314a24e09c5b0d1c1c314ced
selftests/bpf: Add fentry/fexit/fmod_ret selftest for kernel module

Add new selftest checking attachment of fentry/fexit/fmod_ret (and raw
tracepoint ones for completeness) BPF programs to kernel module function.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201203204634.1325171-15-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/module_attach.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_module_attach.c [new file with mode: 0644]