diff options
author | John Garry <john.garry@huawei.com> | 2019-06-28 10:35:52 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-02 15:08:16 -0400 |
commit | edd93a4076cf18ede423c167de6d6fb8e4211e7b (patch) | |
tree | f71d79c2b884d9d0d6c79a1f16ed9bcc0499a5ec /tools/perf | |
parent | 8f5b703add99473b59b4a38a6b66afbafc29d92e (diff) |
perf jevents: Add support for Hisi hip08 L3C PMU aliasing
Add support for Hisi hip08 L3C PMU aliasing.
The kernel driver is in drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
Signed-off-by: John Garry <john.garry@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Hendrik Brueckner <brueckner@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shaokun Zhang <zhangshaokun@hisilicon.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linuxarm@huawei.com
Link: http://lkml.kernel.org/r/1561732552-143038-5-git-send-email-john.garry@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json | 37 | ||||
-rw-r--r-- | tools/perf/pmu-events/jevents.c | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json new file mode 100644 index 000000000000..ca48747642e1 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json | |||
@@ -0,0 +1,37 @@ | |||
1 | [ | ||
2 | { | ||
3 | "EventCode": "0x00", | ||
4 | "EventName": "uncore_hisi_l3c.rd_cpipe", | ||
5 | "BriefDescription": "Total read accesses", | ||
6 | "PublicDescription": "Total read accesses", | ||
7 | "Unit": "hisi_sccl,l3c", | ||
8 | }, | ||
9 | { | ||
10 | "EventCode": "0x01", | ||
11 | "EventName": "uncore_hisi_l3c.wr_cpipe", | ||
12 | "BriefDescription": "Total write accesses", | ||
13 | "PublicDescription": "Total write accesses", | ||
14 | "Unit": "hisi_sccl,l3c", | ||
15 | }, | ||
16 | { | ||
17 | "EventCode": "0x02", | ||
18 | "EventName": "uncore_hisi_l3c.rd_hit_cpipe", | ||
19 | "BriefDescription": "Total read hits", | ||
20 | "PublicDescription": "Total read hits", | ||
21 | "Unit": "hisi_sccl,l3c", | ||
22 | }, | ||
23 | { | ||
24 | "EventCode": "0x03", | ||
25 | "EventName": "uncore_hisi_l3c.wr_hit_cpipe", | ||
26 | "BriefDescription": "Total write hits", | ||
27 | "PublicDescription": "Total write hits", | ||
28 | "Unit": "hisi_sccl,l3c", | ||
29 | }, | ||
30 | { | ||
31 | "EventCode": "0x04", | ||
32 | "EventName": "uncore_hisi_l3c.victim_num", | ||
33 | "BriefDescription": "l3c precharge commands", | ||
34 | "PublicDescription": "l3c precharge commands", | ||
35 | "Unit": "hisi_sccl,l3c", | ||
36 | }, | ||
37 | ] | ||
diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index 3c95affd85a4..287a6f10ca48 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c | |||
@@ -238,6 +238,7 @@ static struct map { | |||
238 | { "UPI LL", "uncore_upi" }, | 238 | { "UPI LL", "uncore_upi" }, |
239 | { "hisi_sccl,ddrc", "hisi_sccl,ddrc" }, | 239 | { "hisi_sccl,ddrc", "hisi_sccl,ddrc" }, |
240 | { "hisi_sccl,hha", "hisi_sccl,hha" }, | 240 | { "hisi_sccl,hha", "hisi_sccl,hha" }, |
241 | { "hisi_sccl,l3c", "hisi_sccl,l3c" }, | ||
241 | {} | 242 | {} |
242 | }; | 243 | }; |
243 | 244 | ||