bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH dwarves v3 0/3] btf_encoder: refactor emission of BTF funcs
@ 2025-11-05 18:59 Ihor Solodrai
  2025-11-05 18:59 ` [PATCH dwarves v3 1/3] btf_encoder: Remove encoder pointer from btf_encoder_func_state Ihor Solodrai
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Ihor Solodrai @ 2025-11-05 18:59 UTC (permalink / raw)
  To: dwarves, alan.maguire, acme, eddyz87; +Cc: bpf, andrii, ast, kernel-team

This series refactors a few functions that handle how BTF functions
are emitted.

While addressing comments from Eduard, I noticed that we don't
actually need to carry the encoder in btf_encoder_func_state, because
only one encoder exists at all times. So in v3 I added a patch
removing encoder from the state struct, which resolves the ambiguity
of where state->encoder should be used.

v2: https://lore.kernel.org/dwarves/20251104233532.196287-1-ihor.solodrai@linux.dev/
v1: https://lore.kernel.org/dwarves/20251029190249.3323752-2-ihor.solodrai@linux.dev/

Ihor Solodrai (3):
  btf_encoder: Remove encoder pointer from btf_encoder_func_state
  btf_encoder: Refactor btf_encoder__add_func_proto
  btf_encoder: Factor out BPF kfunc emission

 btf_encoder.c | 204 +++++++++++++++++++++++++++++---------------------
 1 file changed, 117 insertions(+), 87 deletions(-)

-- 
2.51.1


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

end of thread, other threads:[~2025-11-05 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 18:59 [PATCH dwarves v3 0/3] btf_encoder: refactor emission of BTF funcs Ihor Solodrai
2025-11-05 18:59 ` [PATCH dwarves v3 1/3] btf_encoder: Remove encoder pointer from btf_encoder_func_state Ihor Solodrai
2025-11-05 18:59 ` [PATCH dwarves v3 2/3] btf_encoder: Refactor btf_encoder__add_func_proto Ihor Solodrai
2025-11-05 18:59 ` [PATCH dwarves v3 3/3] btf_encoder: Factor out BPF kfunc emission Ihor Solodrai
2025-11-05 22:07   ` Eduard Zingerman
2025-11-05 22:08 ` [PATCH dwarves v3 0/3] btf_encoder: refactor emission of BTF funcs Eduard Zingerman

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