powerpc/perf: Add mem access events to sysfs
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Mon, 10 Dec 2018 03:59:05 +0000 (09:29 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Jan 2019 23:38:27 +0000 (10:38 +1100)
commitab4510e9ac6dcdd5e9ec0380bec279b5ae97ce10
tree14d7ec122184aba6d6099dade1f24d8daeb4b049
parent865a9432d16fe2f40a1a52005fd30778056c7921
powerpc/perf: Add mem access events to sysfs

Add mem-loads/mem-stores events to sysfs.
The event is formed based on raw event encoding.
Primary PMU event used here is PM_MRK_INST_CMPL
along with MMCRA[SM] modes and Thresholding bit

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/power9-events-list.h
arch/powerpc/perf/power9-pmu.c