libbpf: Support attachment of BPF tracing programs to kernel modules
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Dec 2020 20:46:32 +0000 (12:46 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Dec 2020 01:38:21 +0000 (17:38 -0800)
commit91abb4a6d79df6c4dcd86d85632df53c8cca2dcf
tree557fc11c841adeb6784e7baa5cda3c95b6381073
parent6aef10a481a3f42c8021fe410e07440c0d71a5fc
libbpf: Support attachment of BPF tracing programs to kernel modules

Teach libbpf to search for BTF types in kernel modules for tracing BPF
programs. This allows attachment of raw_tp/fentry/fexit/fmod_ret/etc BPF
program types to tracepoints and functions in kernel modules.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201203204634.1325171-13-andrii@kernel.org
tools/lib/bpf/bpf.c
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h