Skip to content

pahole: Make encoding percpu vars into BTF optional.

Hao Luo 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 2 repliesIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Use opt-out instead of opt-in. Rename the flag name to '--skip_encoding_btf_vars'

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btf_encoder: Allow disabling BTF var encoding.btf_encoder.c btf_encoder.h pahole.c+16 -30 replies
2/2btf_encoder: Introduce option '--btf_encode_force'pahole.c+8 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] pahole: Make encoding percpu vars into BTF optional.

v1 -> v2:
- Use opt-out instead of opt-in. Rename the flag name to '--skip_encoding_btf_vars'

Previous commit f3d9054ba8ff ("btf_encoder: Teach pahole to store percpu variables in vmlinux BTF.") introduced a feature in btf_encoder that encodes global symbols in BTF. However, this feature is not protected by any flag. In order to avoid surprises after Pahole v1.18 rolls out, add a flag to toggle this feature off.

Also as a refactor, introduce '--btf_encode_force' to replace the old '--force' and '-j' option that is used to forcefully emit BTF.

Hao Luo (2):
btf_encoder: Allow disabling BTF var encoding.
btf_encoder: Introduce option '--btf_encode_force'

 btf_encoder.c |  5 ++++-
 btf_encoder.h |  3 ++-
 pahole.c      | 22 +++++++++++++++++-----
 3 files changed, 23 insertions(+), 7 deletions(-)
Signature · 1 line
2.28.0.681.g6f77f65b4e-goog