powerpc/perf: Fix branch event code for power9
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Sun, 25 Jun 2017 15:34:46 +0000 (21:04 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jun 2017 03:08:08 +0000 (13:08 +1000)
commit24bedcb7c811375a962a621613ad152d95bc28ba
tree323243c8dac051a41e18c7bee55a5ce7c3f0bb91
parent89d8bb163868178d5b35d1bc1237e67306940cce
powerpc/perf: Fix branch event code for power9

Correct "branch" event code of Power9 is "r4d05e". Replace the current
"branch" event code with "r4d05e" and add a hack to use "r10012" as
event code for Power9 DD1.

Fixes: d89f473ff6f8 ("powerpc/perf: Fix PM_BRU_CMPL event code for power9")
Reported-by: Anton Blanchard <anton@samba.org>
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