Re: [PATCH v2 1/2] perf stat: Use proper cpu for shadow stats

2020-11-27 Thread Arnaldo Carvalho de Melo
Em Fri, Nov 27, 2020 at 01:14:03PM +0900, Namhyung Kim escreveu: > Currently perf stat shows some metrics (like IPC) for defined events. > But when no aggregation mode is used (-A option), it shows incorrect > values since it used a value from a different cpu. > > Before: > > $ perf stat -aA

[PATCH v2 1/2] perf stat: Use proper cpu for shadow stats

2020-11-26 Thread Namhyung Kim
Currently perf stat shows some metrics (like IPC) for defined events. But when no aggregation mode is used (-A option), it shows incorrect values since it used a value from a different cpu. Before: $ perf stat -aA -e cycles,instructions sleep 1 Performance counter stats for 'system wide':