]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
libbpf: Add btf_type_is_traceable_func function
authorJiri Olsa <jolsa@kernel.org>
Sat, 6 Jun 2026 12:39:44 +0000 (14:39 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 7 Jun 2026 17:03:02 +0000 (10:03 -0700)
commit616a93b473a6ab33494db27057f8a413f375ac4f
treebfa6d52861fc3247f0edf89846a6182d5b696c4e
parent630e85a9f0056a7534601ed1ec2532d6ac85b7d7
libbpf: Add btf_type_is_traceable_func function

Adding btf_type_is_traceable_func function to perform same checks
as the kernel's btf_distill_func_proto function to prevent attachment
on some of the functions.

Exporting the function via libbpf_internal.h because it will be used
by benchmark test in following changes.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20260606123955.345967-20-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h