From: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
To: Michael Ellerman <mpe@ellerman.id.au>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
mingo@redhat.com, Jiri Olsa <jolsa@redhat.com>
Cc: linuxppc-dev@lists.ozlabs.org, <linux-kernel@vger.kernel.org>
Subject: [PATCH 3/4] powerpc/perf: Rename some Power8 events
Date: Mon, 2 Nov 2015 12:22:24 -0800 [thread overview]
Message-ID: <1446495745-24001-4-git-send-email-sukadev@linux.vnet.ibm.com> (raw)
In-Reply-To: <1446495745-24001-1-git-send-email-sukadev@linux.vnet.ibm.com>
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
next prev parent reply other threads:[~2015-11-02 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 20:22 [PATCH 0/4] powerpc/perf: Export Power8 PMU events in sysfs Sukadev Bhattiprolu
2015-11-02 20:22 ` [PATCH 1/4] powerpc/perf: Remove PME_ prefix for power7 events Sukadev Bhattiprolu
2015-11-02 20:22 ` [PATCH 2/4] powerpc/perf: Export Power8 generic and cache events in sysfs Sukadev Bhattiprolu
2015-11-02 20:22 ` Sukadev Bhattiprolu [this message]
2015-11-02 20:22 ` [PATCH 4/4] powerpc/perf: Export all Power8 PMU " Sukadev Bhattiprolu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1446495745-24001-4-git-send-email-sukadev@linux.vnet.ibm.com \
--to=sukadev@linux.vnet.ibm.com \
--cc=acme@kernel.org \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mingo@redhat.com \
--cc=mpe@ellerman.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).