]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: get_call_summary() utility function
authorEduard Zingerman <eddyz87@gmail.com>
Tue, 4 Mar 2025 19:50:21 +0000 (11:50 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 15 Mar 2025 18:48:29 +0000 (11:48 -0700)
commit22f8397495ea250d2cebd5a9123ef412395fad18
tree09ed2033ebe49a26012c1c95b8f406e9a932cc92
parent80ca3f1d77bb82fe84fad55a013832e03a4f5087
bpf: get_call_summary() utility function

Refactor mark_fastcall_pattern_for_call() to extract a utility
function get_call_summary(). For a helper or kfunc call this function
fills the following information: {num_params, is_void, fastcall}.

This function would be used in the next patch in order to get number
of parameters of a helper or kfunc call.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250304195024.2478889-3-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c