perf stat: Fix IPC and other formulas with -A
authorAndi Kleen <ak@linux.intel.com>
Wed, 11 Mar 2015 15:28:01 +0000 (08:28 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 13 Mar 2015 10:46:10 +0000 (07:46 -0300)
commit56f0fd45d8df51542930b9b2e1acee5034b53479
tree1b7fca0f64cda22963390eddda9547e6307bb5ae
parentd73515c03c6a2706e088094ff6095a3abefd398b
perf stat: Fix IPC and other formulas with -A

perf stat didn't compute the IPC and other formulas for individual CPUs
with -A. Fix this for the easy -A case. As before, --per-core and
--per-socket do not handle it, they simply print nothing.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1426087682-22765-2-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c