]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Refactor CO-RE relocs to not assume a single BTF object
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Dec 2020 20:46:24 +0000 (12:46 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Dec 2020 01:38:20 +0000 (17:38 -0800)
commitae54cae0ecaeac3886a1c68a8d514efc3db2ecab
tree2f7f002a20defc7831e2987feefe0f9016088e85
parent227be16bb63514d8b4abe860d6e57822afa1ef3b
libbpf: Refactor CO-RE relocs to not assume a single BTF object

Refactor CO-RE relocation candidate search to not expect a single BTF, rather
return all candidate types with their corresponding BTF objects. This will
allow to extend CO-RE relocations to accommodate kernel module BTFs.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20201203204634.1325171-5-andrii@kernel.org
tools/lib/bpf/libbpf.c