selftests/bpf: Test kind encoding/decoding

verify btf__new_empty_opts() adds layouts for all kinds supported,
and after adding kind-related types for an unknown kind, ensure that
parsing uses this info when that kind is encountered rather than
giving up.

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-9-alan.maguire@oracle.com
This commit is contained in:
Alan Maguire 2026-03-26 14:54:43 +00:00 • committed by Andrii Nakryiko
commit 0467491617