perf: Power7: Make CPI stack events available in sysfs
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Sat, 6 Apr 2013 15:48:26 +0000 (08:48 -0700)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:43:37 +0000 (11:43 +0900)
commita89248c87b1610a6ecd1d383e6f7890d4b27e5e6
treebea9bbc7fec7deb7ba84ae10949affabac1e4eed
parent0cc98a9b0d54db4881fc6e6a0795ef8b9eedec4c
perf: Power7: Make CPI stack events available in sysfs

A set of Power7 events are often used for Cycles Per Instruction (CPI) stack
analysis. Make these events available in sysfs (/sys/devices/cpu/events/) so
they can be identified using their symbolic names:

perf stat -e 'cpu/PM_CMPLU_STALL_DCACHE_MISS/' /bin/ls

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@ozlabs.org
Link: http://lkml.kernel.org/r/20130406164803.GA408@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
arch/powerpc/perf/power7-pmu.c