]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/perf: Use Instruction Counter value
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Sun, 12 Feb 2017 17:03:14 +0000 (22:33 +0530)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 24 Feb 2017 13:24:02 +0000 (07:24 -0600)
commit24a437486ef0047c91e59f9e88227fbc67128122
treeb6aa989d5426aaf79f248fc67815335570e63817
parentd609ccb256d41b8b010a4b6559b60ea59eb0fc7f
powerpc/perf: Use Instruction Counter value

BugLink: http://bugs.launchpad.net/bugs/1667413
Since PM_INST_DISP include speculative instruction,
based on the workload the dispatch count could vary
considerably. Hence as an alternative, for completed
instruction counting, program the PM_INST_DISP event
to the MMCR* but use Instruction Counter register value.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from linux-next commit 356d8ce3d0a4a1d7c8448c4d234121736ad3d471)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/powerpc/perf/core-book3s.c