]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Implement generalized .BTF.ext func/line info adjustment
authorAndrii Nakryiko <andriin@fb.com>
Thu, 3 Sep 2020 20:35:33 +0000 (13:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Sep 2020 00:14:40 +0000 (17:14 -0700)
commitb727b51953d883a7b32703a4b7b42cda9eb5848c
treeafe567cf93b1e30ed0c002b6918af142f4dee5df
parent000a719a3dbb5ec9f2e107de72a6cb39eb7cc6bf
libbpf: Implement generalized .BTF.ext func/line info adjustment

Complete multi-prog sections and multi sub-prog support in libbpf by properly
adjusting .BTF.ext's line and function information. Mark exposed
btf_ext__reloc_func_info() and btf_ext__reloc_func_info() APIs as deprecated.
These APIs have simplistic assumption that all sub-programs are going to be
appended to all main BPF programs, which doesn't hold in real life. It's
unlikely there are any users of this API, as it's very libbpf
internals-specific.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200903203542.15944-6-andriin@fb.com
tools/lib/bpf/btf.h
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_common.h