Re: [PATCH v4 3/4] perf/core: Remove pmu linear searching code

From: Peter Zijlstra
Date: Thu Jun 01 2023 - 07:20:55 EST


On Thu, Jun 01, 2023 at 01:18:56PM +0200, Peter Zijlstra wrote:
> On Thu, Jun 01, 2023 at 01:02:30PM +0200, Thomas Richter wrote:
>
> > PS: I have the feeling, it gets complicated to have multiple hardware PMUs
> > per platform.
>
> Recently someone was poking around giving the pmu device a parent, this
> would, I think, result in sysfs links, which could be used to decide
> what's what.
>
> Core pmus would have the CPU device as their parent, while memory
> controller thingies would link to the relevant node or something.
>
> Ofc. all that's future-work/pending.

https://lkml.kernel.org/r/20230404134225.13408-1-Jonathan.Cameron%40huawei.com

https://lkml.kernel.org/r/20230531110011.13963-2-Jonathan.Cameron%40huawei.com