On Tue, Aug 20, 2024 at 2:03 AM Matteo Croce technoboy85@gmail.com wrote:
From: Matteo Croce teknoraver@meta.com
Pass to register_btf_kfunc_id_set() a btf_kfunc_hook directly, instead of a bpf_prog_type. Many program types share the same kfunc hook, so some calls to register_btf_kfunc_id_set() can be removed.
Tested compiling the kernel with -Werror=enum-conversion to catch all the occourrences.
Signed-off-by: Matteo Croce teknoraver@meta.com
I think it's too soon to do this kind of cleanup. We need to refactor this logic to accommodate sched-ext allow/deny pattern for kfunc per struct-ops hook. Let's keep this code as-is for now. pw-bot: cr