]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Add BTF dedup tests for recursive typedef definitions
authorPaul Houssel <paulhoussel2@gmail.com>
Thu, 13 Nov 2025 12:39:51 +0000 (13:39 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Sat, 15 Nov 2025 01:07:20 +0000 (17:07 -0800)
commita69e09823ee94131be76be050d639272c19994d4
treed333b74e94d61981e031712fe33c93d459cf631d
parent3781413465df6e0fb7f3c2001f986c9886b7f126
selftests/bpf: Add BTF dedup tests for recursive typedef definitions

Add several ./test_progs tests:
    1.  btf/dedup:recursive typedef ensures that deduplication no
longer fails on recursive typedefs.
    2.  btf/dedup:typedef ensures that typedefs are deduplicated correctly
just as they were before this patch.

Signed-off-by: Paul Houssel <paul.houssel@orange.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/9fac2f744089f6090257d4c881914b79f6cd6c6a.1763037045.git.paul.houssel@orange.com
tools/testing/selftests/bpf/prog_tests/btf.c