selftests/bpf: Test deduplication for BTF_KIND_DECL_TAG typedef
authorYonghong Song <yhs@fb.com>
Thu, 21 Oct 2021 19:56:38 +0000 (12:56 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 23 Oct 2021 00:04:44 +0000 (17:04 -0700)
commit557c8c480401457d885bf7a82221dcc877692aa7
tree32e07d765483c6bc9870d3103018082f1d64b8e5
parent9d19a12b02bf009fefc3620234b4297e4bd7c5d5
selftests/bpf: Test deduplication for BTF_KIND_DECL_TAG typedef

Add unit tests for deduplication of BTF_KIND_DECL_TAG to typedef types.
Also changed a few comments from "tag" to "decl_tag" to match
BTF_KIND_DECL_TAG enum value name.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211021195638.4019770-1-yhs@fb.com
tools/testing/selftests/bpf/prog_tests/btf.c