Skip to content

btf: support typedef DW_TAG_LLVM_annotation

Yonghong Song bpf dwarves 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- change some "if" statements to "switch" statement.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dwarf_loader: support typedef DW_TAG_LLVM_annotationdwarf_loader.c+2 -50 replies
2/2btf_encoder: generate BTF_KIND_DECL_TAGs for typedef btf_decl_tag attributesbtf_encoder.c+14 -30 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrii Nakryiko
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH dwarves v2 0/2] btf: support typedef DW_TAG_LLVM_annotation

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.

Changelog:
v1 -> v2:
- change some "if" statements to "switch" statement.

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  | 17 ++++++++++++++---
 dwarf_loader.c |  7 ++-----
 2 files changed, 16 insertions(+), 8 deletions(-)
Signature · 1 line
2.30.2