mbox series

[dwarves,0/2] btf: support typedef DW_TAG_LLVM_annotation

Message ID 20211027230822.2465100-1-yhs@fb.com (mailing list archive)
Headers show
Series btf: support typedef DW_TAG_LLVM_annotation | expand

Message

Yonghong Song Oct. 27, 2021, 11:08 p.m. UTC
Latest llvm is able to generate DW_TAG_LLVM_annotation for typedef
declarations. Latest bpf-next supports BTF_KIND_DECL_TAG for
typedef declarations. This patch implemented dwarf DW_TAG_LLVM_annotation
to btf BTF_KIND_DECL_TAG conversion. Patch 1 is for dwarf_loader
to process DW_TAG_LLVM_annotation tags. Patch 2 is for the
dwarf->btf conversion.

Yonghong Song (2):
  dwarf_loader: support typedef DW_TAG_LLVM_annotation
  btf_encoder: generate BTF_KIND_DECL_TAGs for typedef btf_decl_tag
    attributes

 btf_encoder.c  | 12 +++++++++---
 dwarf_loader.c |  7 ++-----
 2 files changed, 11 insertions(+), 8 deletions(-)