Re: [RFC PATCH v2 0/3] disable optimistic spinning for ftrace_lock

From
Masami Hiramatsu (Google) <mhiramat@kernel.org>
Date
2026-03-12 08:06:06
Also in
lkml
Reply to
Yafang Shao, 2026-03-11
Hi,

On Wed, 11 Mar 2026 21:40:32 +0800
Yafang Shao [off-list ref] wrote:
quoted
Although there is a bigger issue of why on earth the code is reading the
list of filter functions at all - never mind all the time.
bpftrace reads the complete list of available functions into
userspace, then performs matching against the target function to
determine if it is traceable.
What about changing bpftrace userspace tool to cache the list of available
functions? (or just add an option to pass available function list?)
Then, you can just copy the function list somewhere and uses it.

Of course we can do the same thing in the kernel, but I don't think
there is any reason to do it in the kernel instead of user space.

Thank you,
quoted
I'll do it by hand when debugging, but I'd have though anything using bpf
will know exactly where to add its hooks.

-- 
Regards
Yafang

-- 
Masami Hiramatsu (Google) [off-list ref]
Thread (13 messages) 13 messages, 5 authors, last reply 2026-03-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help