Skip to content

libbpf: BTF field iterator

Andrii Nakryiko bpf 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesApplied 5/5
  2. v15 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- t_cnt -> t_off_cnt, m_cnt -> m_off_cnt (Eduard);
- simpified code in linker.c (Jiri);
rfcv1->v1:
- check errors when initializing iterators (Jiri);
- split RFC patch into separate patches.

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5libbpf: add BTF field iteratortools/lib/bpf/btf.c tools/lib/bpf/libbpf_internal.h+186 -00 repliesApplied
2/5libbpf: make use of BTF field iterator in BPF linker codetools/lib/bpf/btf.c tools/lib/bpf/libbpf_internal.h tools/lib/bpf/linker.c+40 -260 repliesApplied
3/5libbpf: make use of BTF field iterator in BTF handling codetools/lib/bpf/btf.c+54 -220 repliesApplied
4/5bpftool: use BTF field iterator in btfgentools/bpf/bpftool/gen.c+6 -101 replyApplied
5/5libbpf: remove callback-based type/string BTF field visitor helperstools/lib/bpf/btf.c tools/lib/bpf/libbpf_internal.h+0 -1320 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEduard ZingermanJiri OlsaQuentin MonnetAlan Maguire
SeriesA-b T-b
1/5A-b
2/5A-b A-b
3/5A-b
4/5A-b R-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/5] libbpf: BTF field iterator

Add BTF field (type and string fields, right now) iterator support instead of using existing callback-based approaches, which make it harder to understand and support BTF-processing code.

v1->v2:
- t_cnt -> t_off_cnt, m_cnt -> m_off_cnt (Eduard);
- simpified code in linker.c (Jiri);
rfcv1->v1:
- check errors when initializing iterators (Jiri);
- split RFC patch into separate patches.

Andrii Nakryiko (5):
libbpf: add BTF field iterator
libbpf: make use of BTF field iterator in BPF linker code
libbpf: make use of BTF field iterator in BTF handling code
bpftool: use BTF field iterator in btfgen
libbpf: remove callback-based type/string BTF field visitor helpers

 tools/bpf/bpftool/gen.c         |  16 +-
 tools/lib/bpf/btf.c             | 328 +++++++++++++++++++-------------
 tools/lib/bpf/libbpf_internal.h |  26 ++-
 tools/lib/bpf/linker.c          |  58 +++---
 4 files changed, 262 insertions(+), 166 deletions(-)
Signature · 1 line
2.43.0