Re: [PATCH v2 0/4] perf lock contention: Symbolize locks using slab cache names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Mon, Nov 18, 2024 at 10:35:43AM -0800, Namhyung Kim wrote:
> On Mon, Nov 11, 2024 at 11:46:37AM -0800, Ian Rogers wrote:
> > On Thu, Nov 7, 2024 at 10:15 PM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> > >
> > > Hello,
> > >
> > > This is to support symbolization of dynamic locks using slab
> > > allocator's metadata.  The kernel support is in the bpf-next tree now.
> > >
> > > It provides the new "kmem_cache" BPF iterator and "bpf_get_kmem_cache"
> > > kfunc to get the information from an address.  The feature detection is
> > > done using BTF type info and it won't have any effect on old kernels.
> > >
> > > v2 changes)
> > >
> > >  * don't use libbpf_get_error()  (Andrii)
> > >
> > > v1) https://lore.kernel.org/linux-perf-users/20241105172635.2463800-1-namhyung@xxxxxxxxxx
> > >
> > > With this change, it can show locks in a slab object like below.  I
> > > added "&" sign to distinguish them from global locks.
> > 
> > I know the & is intentional but I worry it could later complicate
> > parsing of filters. Perhaps @ is a viable alternative. Other than
> > that:
> > 
> > Acked-by: Ian Rogers <irogers@xxxxxxxxxx>
> 
> Thanks for the review!
> 
> I don't think it clashes with BPF sample filters which works on sample
> data generated from a perf_event.  Technically this command doesn't use
> perf_event and just attaches the BPF program to tracepoint directly.
> 
> Also sample filters don't use '&' symbol in the syntax as of now. :)

Can we merge this series if no more feedback?

About the build issue, I think it's transient and it's not the default
to build with generated vmlinux.h.  We could disable the generation but
it might be better to keep it to test other issues.  Anyway, it can be
done independently.

Thanks,
Namhyung





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux