selftests/bpf: Add set_attach_target() API selftest for module target

Add test for bpf_program__set_attach_target() API, validating it can find
kernel module fentry target.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201211215825.3646154-3-andrii@kernel.org
This commit is contained in:
Andrii Nakryiko 2020-12-11 13:58:25 -08:00 • committed by Daniel Borkmann
commit 2e33f831fc
2 changed files with 21 additions and 1 deletions