Skip to content

btf_encoder: KF_IMPLICIT_PROG_AUX_ARG support

Ihor Solodrai bpf dwarves 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btf_encoder: refactor btf_encoder__add_func_protobtf_encoder.c+75 -570 replies
2/2btf_encoder: implement KF_IMPLICIT_PROG_AUX_ARG kfunc flag handlingbtf_encoder.c+42 -04 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH dwarves v1 0/2] btf_encoder: KF_IMPLICIT_PROG_AUX_ARG support

This series implements KF_IMPLICIT_PROG_AUX_ARG kfunc flag in pahole's BTF encoding.

The kfunc flag indicates that the last argument of a BPF kfunc is a pointer to struct bpf_prog_aux implicitly set by the verifier.

BTF function prototype of such a function must omit its last parameter (expected to be of struct bpf_prog_aux * type), despite it being present in the kernel declaration of the kfunc.

See also a the patch series for BPF:
"bpf: implicit bpf_prog_aux argument for kfuncs"

Ihor Solodrai (2):
btf_encoder: refactor btf_encoder__add_func_proto
btf_encoder: implement KF_IMPLICIT_PROG_AUX_ARG kfunc flag handling

 btf_encoder.c | 172 ++++++++++++++++++++++++++++++++++----------------
 1 file changed, 116 insertions(+), 56 deletions(-)
Signature · 1 line
2.51.0