Re: [PATCH v1 2/3] perf parse-events: Make common term list to strbuf helper

From: Liang, Kan
Date: Wed Aug 30 2023 - 16:30:00 EST




On 2023-08-30 2:29 p.m., Liang, Kan wrote:
>> The problem
>> is how we encode terms of an event name, it is indistinguishable when
>> the of the user field is 1. I'll probably add something to fix this
>> later, but it only impacts debug output and perf list, so I'm not
>> overly worried.
> It should be OK for the debug output.
>

Not just the debug output. It also impacts the perf list --detail.

With the patch,
perf list --detail | grep uops_retired.heavy -A 2
uops_retired.heavy
[Retired uops except the last uop of each instruction. Unit:
cpu_core]
cpu_core/event=0xc2,period=0x1e8483,umask/

Without the patch,
perf list --detail | grep uops_retired.heavy -A 2
uops_retired.heavy
[Retired uops except the last uop of each instruction. Unit:
cpu_core]
cpu_core/event=0xc2,period=0x1e8483,umask=0x1/

Thanks,
Kan