OSDN Git Service

bpf: Add BTF_KIND_DECL_TAG typedef support
authorYonghong Song <yhs@fb.com>
Thu, 21 Oct 2021 19:56:28 +0000 (12:56 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 23 Oct 2021 00:04:43 +0000 (17:04 -0700)
commitbd16dee66ae4de3f1726c69ac901d2b7a53b0c86
treea9c812d43f9b538d97f297d3fc10c27777b00c83
parenta33f607f6802374672067d947209b542d12f4dac
bpf: Add BTF_KIND_DECL_TAG typedef support

The llvm patches ([1], [2]) added support to attach btf_decl_tag
attributes to typedef declarations. This patch added
support in kernel.

  [1] https://reviews.llvm.org/D110127
  [2] https://reviews.llvm.org/D112259

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