Re: [PATCH bpf-next v8 2/3] perf: Refactor get_perf_callchain
From: Peter Zijlstra
Date: Mon Feb 02 2026 - 15:00:45 EST
On Fri, Jan 30, 2026 at 12:04:45PM -0800, Andrii Nakryiko wrote:
> > Also, there appears to be no buildid caching what so ever, surely that
> > would help some.
>
> Jiri Olsa proposed caching build id per file or per inode some time
> back, there was vehement opposition to it. And doing some locked
> global resizable hash that might need to be used from NMI sounds
> horrible, tbh. So we have what we have today.
See kernel/module/tree_lookup.c and include/linux/rbtree_latch.h :-)