powerpc/perf: macros for power9 format encoding
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Fri, 2 Dec 2016 00:35:02 +0000 (06:05 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2016 05:26:57 +0000 (16:26 +1100)
commitc7c3f568beff2b72f02a7807ec48b0bc66a7ead6
tree8fb442530e2d549657a56de9a87409e0a27ce3d0
parent18201b204286a1ef478ef52b00ab9f6c5739b4f6
powerpc/perf: macros for power9 format encoding

Patch to add macros and contants to support the power9 raw
event encoding format. Couple of functions added since some of the
bits fields like PMCxCOMB and THRESH_CMP has different width and location
within MMCR* in power9.

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