Re: [PATCH] perf/amd/ibs: Make IBS a core pmu

From: Ravi Bangoria
Date: Wed Nov 16 2022 - 00:46:17 EST


On 15-Nov-22 10:37 PM, Ian Rogers wrote:
> On Tue, Nov 15, 2022 at 1:39 AM Ravi Bangoria <ravi.bangoria@xxxxxxx> wrote:
>>
>> So far, only one pmu was allowed to be registered as core pmu and thus
>> IBS pmus were being registered as uncore. However, with the event context
>> rewrite, that limitation no longer exists and thus IBS pmus can also be
>> registered as core pmu. This makes IBS much more usable, for ex, user
>> will be able to do per-process precise monitoring on AMD:
>>
>> Before patch:
>> $ sudo perf record -e cycles:pp ls
>> Error:
>> Invalid event (cycles:pp) in per-thread mode, enable system wide with '-a'
>>
>> After patch:
>> $ sudo perf record -e cycles:pp ls
>> [ perf record: Woken up 1 times to write data ]
>> [ perf record: Captured and wrote 0.017 MB perf.data (33 samples) ]
>>
>> Signed-off-by: Ravi Bangoria <ravi.bangoria@xxxxxxx>
>
> Acked-by: Ian Rogers <irogers@xxxxxxxxxx>
>
> This is awesome!
> Ian

Thanks Ian.

Peter, can we push this along with rewrite patch?

Thanks,
Ravi