]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add a btf_dump test for type_tags
authorIhor Solodrai <ihor.solodrai@linux.dev>
Thu, 30 Jan 2025 20:12:37 +0000 (12:12 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Feb 2025 00:17:59 +0000 (16:17 -0800)
commit6c2d2a05a762ba3618afa5ed94c11fd8ebc5e435
tree4802ff95c07cde4a1885049f4e13772b4a2f589a
parent2019c58318b886bb1df523b7a063164943b87785
selftests/bpf: Add a btf_dump test for type_tags

Factor out common routines handling custom BTF from
test_btf_dump_incremental. Then use them in the
test_btf_dump_type_tags.

test_btf_dump_type_tags verifies that a type tag is dumped correctly
with respect to its kflag.

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20250130201239.1429648-5-ihor.solodrai@linux.dev
tools/testing/selftests/bpf/prog_tests/btf_dump.c