diff mbox

[2/5] powerpc/perf: Add PM_INST_DISP event to Power9 event list

Message ID 1485779021-31936-2-git-send-email-maddy@linux.vnet.ibm.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

maddy Jan. 30, 2017, 12:23 p.m. UTC
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
---
 arch/powerpc/perf/power9-events-list.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Anton Blanchard Feb. 1, 2017, 11 a.m. UTC | #1
Hi Maddy,

> +EVENT(PM_INST_DISP,				0x200f0)
> +EVENT(PM_INST_DISP_ALT,				0x300f0)

Are you sure these are the right events? 0x200f2, 0x300f2 should be
instruction dispatch I think.

Anton
maddy Feb. 1, 2017, 3:18 p.m. UTC | #2
On Wednesday 01 February 2017 04:30 PM, Anton Blanchard wrote:
> Hi Maddy,
>
>> +EVENT(PM_INST_DISP,				0x200f0)
>> +EVENT(PM_INST_DISP_ALT,				0x300f0)
> Are you sure these are the right events? 0x200f2, 0x300f2 should be
> instruction dispatch I think.
Damn. This is bad. I looked at the wrong column. You are right
0x200f2 and 0x300f2 are the PM_INST_DISPL. Nice catch.

Will fix it.

Thanks Anton.
Maddy

>
> Anton
>
diff mbox

Patch

diff --git a/arch/powerpc/perf/power9-events-list.h b/arch/powerpc/perf/power9-events-list.h
index 929b56d47ad9..8210b0d5bcd1 100644
--- a/arch/powerpc/perf/power9-events-list.h
+++ b/arch/powerpc/perf/power9-events-list.h
@@ -53,3 +53,6 @@  EVENT(PM_ITLB_MISS,				0x400fc)
 EVENT(PM_RUN_INST_CMPL,				0x500fa)
 /* Run_cycles */
 EVENT(PM_RUN_CYC,				0x600f4)
+/* Instruction Dispatched */
+EVENT(PM_INST_DISP,				0x200f0)
+EVENT(PM_INST_DISP_ALT,				0x300f0)