]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
libbpf: Use layout to compute an unknown kind size
authorAlan Maguire <alan.maguire@oracle.com>
Thu, 26 Mar 2026 14:54:38 +0000 (14:54 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 26 Mar 2026 20:53:56 +0000 (13:53 -0700)
commit2ecbe53e0e991ce640478c552e564ff99043a29f
tree51564d3b1cef1513719be06c6eabc851bdd60b33
parent087f3964f4b3031dbd0a98844b225add8e1e1169
libbpf: Use layout to compute an unknown kind size

This allows BTF parsing to proceed even if we do not know the
kind.  Fall back to base BTF layout if layout information is
not in split BTF.

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260326145444.2076244-4-alan.maguire@oracle.com
tools/lib/bpf/btf.c