# Re: \[RFC PATCH 1/2\] locking: add mutex\_lock\_nospin()

- From: Yafang Shao \<hidden\>
- Date: 2026-03-05 02:33:36 
- List: bpf
- Page: https://ratatoskr.run/bpf/2026/03/3441233
- Thread: https://ratatoskr.run/linux-trace-kernel/2026/03/3439334/t.md

```text
On Thu, Mar 5, 2026 at 10:28 AM Steven Rostedt [ref] wrote:
>
> On Thu, 5 Mar 2026 10:17:09 +0800
> Yafang Shao [ref] wrote:
>
> > bpftrace is a widely used tool for online debugging and dynamic
> > tracing. However, sysadmins may unknowingly run multiple bpftrace
> > instances concurrently without realizing the potential impact on
> > system performance.
> >
> > If this is your answer, I believe we should clearly document the
> > following warning:
> >
> >   Warning: Do not read available_filter_functions concurrently, as
> > doing so can significantly degrade system performance and potentially
> > impact production workloads.
>
> Or update bpftrace to cache that file. It's only updated on module load
> and unload, which isn't done much. There's no reason it needs to
> constantly read that file if bpftrace is being used constantly.

Other tools may also read available_filter_functions, requiring each
one to be patched individually to avoid this flaw—a clearly
impractical solution.

-- 
Regards
Yafang
```
