Re: [REGRESSION][BISECT] perf/core: Remove pmu linear searching code

From: Krzysztof Kozlowski
Date: Mon Jun 05 2023 - 06:17:22 EST


On 05/06/2023 12:14, Peter Zijlstra wrote:
> On Mon, Jun 05, 2023 at 11:27:31AM +0200, Peter Zijlstra wrote:
>
>> That said; given that this commit has been tagged twice now, I suppose I
>> should go revert it and we'll try again after a more thorough audit.
>
> I'll go queue this then...
>
> ---
> Subject: perf: Re-instate the linear PMU search
> From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Date: Mon Jun 5 11:42:39 CEST 2023
>
> Full revert of commit 9551fbb64d09 ("perf/core: Remove pmu linear
> searching code").
>
> Some architectures (notably arm/arm64) still relied on the linear
> search in order to find the PMU that consumes
> PERF_TYPE_{HARDWARE,HW_CACHE,RAW}.
>
> This will need a more thorought audit and clean.
>
> Reported-by: Nathan Chancellor <nathan@xxxxxxxxxx>
> Reported-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

Thanks.

Best regards,
Krzysztof