Commit 2dc1e488e5cd ("libbpf: Support BTF_KIND_TYPE_TAG") added BTF_KIND_TYPE_TAG support. But BTF_KIND_TYPE_TAG is not handled properly in libbpf btf_dedup_is_equiv() which will cause pahole dedup failure if the kernel has the following hack: #define __user __attribute__((btf_type_tag("user"))) Patch 1 fixed the issue and Patch 2 added a test for it. Yonghong Song (2): libbpf: fix a couple of missed btf_type_tag handling in btf.c selftests/bpf: add a dedup selftest with equivalent structure types tools/lib/bpf/btf.c | 2 ++ tools/testing/selftests/bpf/prog_tests/btf.c | 26 ++++++++++++++++++++ 2 files changed, 28 insertions(+) -- 2.30.2