[PATCH 0/2] Export POWER8 PMU raw event codes through sysfs
Anshuman Khandual
khandual at linux.vnet.ibm.com
Wed Oct 16 16:52:58 EST 2013
This patchset adds some missing event list for POWER7 PMU raw
events which are exported through sysfs interface. Also adds a new
set of raw PMU events list for POWER8. I have completed some amount
of initial testing to verify the working of POWER8 raw event codes
through sysfs.
Before the patch
================
directory contents: /sys/bus/event_source/devices/cpu/
format perf_event_mux_interval_ms power subsystem type uevent
After the patch
===============
(1) directory contents: /sys/bus/event_source/devices/cpu/
'events' format perf_event_mux_interval_ms power subsystem type uevent
(2) contents inside new directory: /sys/bus/event_source/devices/cpu/events/
............................
............................
............................
PM_ANY_THRD_RUN_CYC
PM_BR_2PATH
PM_BR_CMPL
PM_BR_MRK_2PATH
PM_BR_TAKEN_CMPL
PM_CMPLU_STALL_BRU
PM_CMPLU_STALL_BRU_CRU
PM_CMPLU_STALL_COQ_FULL
PM_CMPLU_STALL_DCACHE_MISS
PM_CMPLU_STALL_DMISS_L21_L31
PM_CMPLU_STALL_DMISS_L2L3
PM_CMPLU_STALL_DMISS_L2L3_CONFLICT
PM_CMPLU_STALL_DMISS_L3MISS
PM_CMPLU_STALL_DMISS_LMEM
PM_CMPLU_STALL_DMISS_REMOTE
PM_CMPLU_STALL_ERAT_MISS
PM_CMPLU_STALL_FLUSH
PM_CMPLU_STALL_FXLONG
PM_CMPLU_STALL_FXU
PM_CMPLU_STALL_HWSYNC
PM_CMPLU_STALL_LOAD_FINISH
...........................
............................
............................
Sample tests:
================================================================
perf stat -e 'cpu/PM_CMPLU_STALL_ERAT_MISS/' ls
Performance counter stats for 'ls':
56762 cpu/PM_CMPLU_STALL_ERAT_MISS/
0.003643785 seconds time elapsed
perf stat -e 'cpu/PM_CMPLU_STALL_BRU/' ls
Performance counter stats for 'ls':
208615 cpu/PM_CMPLU_STALL_BRU/
0.003600713 seconds time elapsed
=================================================================
Anshuman Khandual (2):
power7, perf: Make some new raw event codes available in sysfs
power8, perf: Export raw event codes through sysfs interface
arch/powerpc/perf/power7-events-list.h | 10 +++
arch/powerpc/perf/power8-events-list.h | 146 +++++++++++++++++++++++++++++++++
arch/powerpc/perf/power8-pmu.c | 30 +++++++
3 files changed, 186 insertions(+)
create mode 100644 arch/powerpc/perf/power8-events-list.h
--
1.7.11.7
More information about the Linuxppc-dev
mailing list