Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1260938

[PATCH 3/4] powerpc/perf: Rename some Power8 events

From Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject [PATCH 3/4] powerpc/perf: Rename some Power8 events
Date 2015-11-02 21:30 +0100
Message-ID <qqtTQ-1ro-3@gated-at.bofh.it> (permalink)
References <qqtTQ-1ro-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Rename following events to be consistent with the specs.
	PM_L1_PREF to PM_LSU_L1_PREF
	PM_PPC_CMPL to PM_INST_CMPL

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
---
 arch/powerpc/perf/power8-events-list.h | 2 +-
 arch/powerpc/perf/power8-pmu.c         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/perf/power8-events-list.h b/arch/powerpc/perf/power8-events-list.h
index 3262e26..69b1a25 100644
--- a/arch/powerpc/perf/power8-events-list.h
+++ b/arch/powerpc/perf/power8-events-list.h
@@ -21,7 +21,7 @@ EVENT(PM_BR_MPRED_CMPL,				0x400f6)
 EVENT(PM_LD_REF_L1,				0x100ee)
 EVENT(PM_LD_MISS_L1,				0x3e054)
 EVENT(PM_ST_MISS_L1,				0x300f0)
-EVENT(PM_L1_PREF,				0x0d8b8)
+EVENT(PM_LSU_L1_PREF,				0x0d8b8)
 EVENT(PM_INST_FROM_L1,				0x04080)
 EVENT(PM_L1_ICACHE_MISS,			0x200fd)
 EVENT(PM_L1_DEMAND_WRITE,			0x0408c)
diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c
index 11848af..b453eb9 100644
--- a/arch/powerpc/perf/power8-pmu.c
+++ b/arch/powerpc/perf/power8-pmu.c
@@ -552,11 +552,11 @@ static int power8_get_alternatives(u64 event, unsigned int flags, u64 alt[])
 			case 0x600f4:	/* PM_RUN_CYC */
 				alt[j++] = 0x1e;
 				break;
-			case 0x2:	/* PM_PPC_CMPL */
+			case 0x2:	/* PM_INST_CMPL */
 				alt[j++] = 0x500fa;	/* PM_RUN_INST_CMPL */
 				break;
 			case 0x500fa:	/* PM_RUN_INST_CMPL */
-				alt[j++] = 0x2;	/* PM_PPC_CMPL */
+				alt[j++] = 0x2;	/* PM_INST_CMPL */
 				break;
 			}
 		}
@@ -709,7 +709,7 @@ static int power8_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
 			[ C(RESULT_MISS)   ] = PM_ST_MISS_L1,
 		},
 		[ C(OP_PREFETCH) ] = {
-			[ C(RESULT_ACCESS) ] = PM_L1_PREF,
+			[ C(RESULT_ACCESS) ] = PM_LSU_L1_PREF,
 			[ C(RESULT_MISS)   ] = 0,
 		},
 	},
-- 
2.5.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 3/4] powerpc/perf: Rename some Power8 events Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-11-02 21:30 +0100

csiph-web