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)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 May 2013 13:04:18 +0000 (16:04 +0300)
commitbd1060eb7b46968a8fbdc58e7d8b4575406a5c93
treee1a95a1357a420f3b0f400f2eb524975f6d3b045
parent3c4797d46c14fa0c7cf733a77bd4b28875078b53
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