]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
libbpf: Check the kflag of type tags in btf_dump
authorIhor Solodrai <ihor.solodrai@linux.dev>
Thu, 30 Jan 2025 20:12:36 +0000 (12:12 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Feb 2025 00:17:59 +0000 (16:17 -0800)
commit2019c58318b886bb1df523b7a063164943b87785
tree8d278873546fd029244dca5bb8338871b1fe696a
parentea70faa1f244ea0bd30f413e4ec7c79a3b5b96f1
libbpf: Check the kflag of type tags in btf_dump

If the kflag is set for a BTF type tag, then the tag represents an
arbitrary __attribute__. Change btf_dump accordingly.

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250130201239.1429648-4-ihor.solodrai@linux.dev
tools/lib/bpf/btf_dump.c