Thread (9 messages) 9 messages, 3 authors, 2024-01-13

Re: [PATCH bpf-next v3 0/3] Annotate kfuncs in .BTF_ids section

From: Lorenz Bauer <hidden>
Date: 2024-01-08 09:15:57
Also in: bpf, cgroups, linux-arm-kernel, linux-input, linux-kselftest, lkml, netdev, netfilter-devel

On Sat, Jan 6, 2024 at 7:25 PM Daniel Xu [off-list ref] wrote:
=== Description ===

This is a bpf-treewide change that annotates all kfuncs as such inside
.BTF_ids. This annotation eventually allows us to automatically generate
kfunc prototypes from bpftool.

We store this metadata inside a yet-unused flags field inside struct
btf_id_set8 (thanks Kumar!). pahole will be taught where to look.
This is great, thanks for tackling this. With yout patches we can
figure out the full set of kfuncs. Is there a way to extend it so that
we can tell which program context a kfunc can be called from?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help