dwarves.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] pahole: Make encoding percpu vars into BTF optional.
@ 2020-09-21 19:53 Hao Luo
  2020-09-21 19:53 ` [PATCH v2 1/2] btf_encoder: Allow disabling BTF var encoding Hao Luo
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Hao Luo @ 2020-09-21 19:53 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Andrii Nakryiko, Alexei Starovoitov, daniel, dwarves, yhs, Hao Luo

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(-)

-- 
2.28.0.681.g6f77f65b4e-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-21 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 19:53 [PATCH v2 0/2] pahole: Make encoding percpu vars into BTF optional Hao Luo
2020-09-21 19:53 ` [PATCH v2 1/2] btf_encoder: Allow disabling BTF var encoding Hao Luo
2020-09-21 19:53 ` [PATCH v2 2/2] btf_encoder: Introduce option '--btf_encode_force' Hao Luo
2020-09-21 19:56 ` [PATCH v2 0/2] pahole: Make encoding percpu vars into BTF optional Arnaldo Carvalho de Melo
2020-09-21 20:00   ` Hao Luo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).