libbpf: Add btf__new_split() API that was declared but not implemented
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 1 Feb 2024 17:20:25 +0000 (09:20 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 1 Feb 2024 21:16:12 +0000 (22:16 +0100)
commitc81a8ab196b5083d5109a51585fcc24fa2055a77
tree79b7a7266067dcdca3d01e7d949050951533d069
parent93ee1eb85e28d1e35bb059c1f5965d65d5fc83c2
libbpf: Add btf__new_split() API that was declared but not implemented

Seems like original commit adding split BTF support intended to add
btf__new_split() API, and even declared it in libbpf.map, but never
added (trivial) implementation. Fix this.

Fixes: ba451366bf44 ("libbpf: Implement basic split BTF support")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20240201172027.604869-4-andrii@kernel.org
tools/lib/bpf/btf.c
tools/lib/bpf/libbpf.map