Re: [PATCH] perf stat: Show percore counts in per CPU output

From: Jin, Yao
Date: Mon Feb 10 2020 - 20:54:24 EST




On 2/11/2020 5:04 AM, Jiri Olsa wrote:
On Mon, Feb 10, 2020 at 09:01:59AM -0800, Andi Kleen wrote:
With --percore-show-thread, CPU0 and CPU4 have the same counts (CPU0 and
CPU4 are siblings, e.g. 2,453,061 in my example). The value is sum of CPU0 +
CPU4.

so it shows percore stats but displays all the cpus? what is this good for?

This is essentially a replacement for the any bit (which is gone in Icelake).
Per core counts are useful for some formulas, e.g. CoreIPC

The original percore version was inconvenient to post process. This
variant matches the output of the any bit.

I see, please put this to the changelog/doc

thanks,
jirka


Thanks Jiri, thanks Andi!

I will put the explanation in v2.

Thanks
Jin Yao