BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/2] bpf: bpftool: Support dumping kfunc prototypes from BTF
@ 2024-05-13 18:38 Daniel Xu
  2024-05-13 18:38 ` [PATCH bpf-next v3 1/2] kbuild: bpf: Tell pahole to DECL_TAG kfuncs Daniel Xu
  2024-05-13 18:38 ` [PATCH bpf-next v3 2/2] bpftool: Support dumping kfunc prototypes from BTF Daniel Xu
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Xu @ 2024-05-13 18:38 UTC (permalink / raw)
  To: linux-kernel, bpf, linux-kbuild, andrii, olsajiri, quentin,
	alan.maguire, acme, eddyz87
  Cc: kernel-team

This patchset enables both detecting as well as dumping compilable
prototypes for kfuncs.

Users will be able to look at BTF inside vmlinux (or modules) and check
if the kfunc they want is available.

For developer convenience, we also support dumping kfunc prototypes from
bpftool.

=== Changelog ===
From v2:
* Update Makefile.btf with pahole flag
* More error checking
* Output formatting changes
* Drop already-merged commit

From v1:
* Add __weak annotation
* Use btf_dump for kfunc prototypes
* Update kernel bpf_rdonly_cast() signature

Daniel Xu (2):
  kbuild: bpf: Tell pahole to DECL_TAG kfuncs
  bpftool: Support dumping kfunc prototypes from BTF

 scripts/Makefile.btf    |  2 +-
 tools/bpf/bpftool/btf.c | 54 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 1 deletion(-)

-- 
2.44.0


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

end of thread, other threads:[~2024-05-13 21:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 18:38 [PATCH bpf-next v3 0/2] bpf: bpftool: Support dumping kfunc prototypes from BTF Daniel Xu
2024-05-13 18:38 ` [PATCH bpf-next v3 1/2] kbuild: bpf: Tell pahole to DECL_TAG kfuncs Daniel Xu
2024-05-13 18:38 ` [PATCH bpf-next v3 2/2] bpftool: Support dumping kfunc prototypes from BTF Daniel Xu
2024-05-13 21:14   ` Daniel Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox