Skip to content

Emit global variables in BTF

Stephen Brennan bpf dwarves linux-debuggers 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 7 repliesIn review
  2. v35 patches 14 repliesSuperseded
  3. v24 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches9 repliesSuperseded

Changes in v4 from the cover letter

1. Gathered Alan's Reviewed-by + Tested-by, and Jiri's Acked-by.
2. Consistently start shndx loops at 1, and use size_t.
3. Since patch 1 of v3 was already applied, I dropped it out of this series.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btf_encoder: stop indexing symbols for VARsbtf_encoder.c+99 -1540 replies
2/4btf_encoder: explicitly check addr/size for u32 overflowbtf_encoder.c+10 -30 replies
3/4btf_encoder: allow encoding VARs from many sectionsbtf_encoder.c+53 -340 replies
4/4pahole: add global_var BTF featurebtf_encoder.c btf_encoder.h dwarves.h +2 more+14 -30 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAlan MaguireJiri Olsa
1/4R-b A-b
2/4R-b A-b
3/4R-b A-b
4/4R-b T-b A-b

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

Read the v4 thread

Cover letter [PATCH dwarves v4 0/4] Emit global variables in BTF

Hi all,

This is v4 of the series which adds global variables to pahole's generated BTF.

Since v3:

1. Gathered Alan's Reviewed-by + Tested-by, and Jiri's Acked-by.
2. Consistently start shndx loops at 1, and use size_t.
3. Since patch 1 of v3 was already applied, I dropped it out of this series.

v3: https://lore.kernel.org/dwarves/[email protected]/
v2: https://lore.kernel.org/dwarves/[email protected]/
v1: https://lore.kernel.org/dwarves/[email protected]/

Thanks everyone for your review, tests, and consideration! Stephen

Stephen Brennan (4):
btf_encoder: stop indexing symbols for VARs
btf_encoder: explicitly check addr/size for u32 overflow
btf_encoder: allow encoding VARs from many sections
pahole: add global_var BTF feature

 btf_encoder.c      | 340 +++++++++++++++++++++------------------------
 btf_encoder.h      |   1 +
 dwarves.h          |   1 +
 man-pages/pahole.1 |   7 +-
 pahole.c           |   3 +-
 5 files changed, 167 insertions(+), 185 deletions(-)
Signature · 1 line
2.43.5