Commit 6b342707 authored by Qi Liu's avatar Qi Liu Committed by Arnaldo Carvalho de Melo

perf jevents: Add support for HiSilicon CPA PMU aliasing

Add support for HiSilicon CPA PMU aliasing.

The kernel driver is in drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c
Reviewed-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarQi Liu <liuqi115@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linuxarm@huawei.com
Link: https://lore.kernel.org/r/20220224111129.41416-3-liuqi115@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 56dce868
[
{
"ConfigCode": "0x00",
"EventName": "cpa_cycles",
"BriefDescription": "count of CPA cycles",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0x61",
"EventName": "cpa_p1_wr_dat",
"BriefDescription": "Number of write ops transmitted by the P1 port",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0x62",
"EventName": "cpa_p1_rd_dat",
"BriefDescription": "Number of read ops transmitted by the P1 port",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0x3",
"EventName": "cpa_p1_rd_dat_64b",
"BriefDescription": "Number of read ops transmitted by the P1 port which size is 64 bytes",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0x4",
"EventName": "cpa_p1_rd_dat_32b",
"BriefDescription": "Number of read ops transmitted by the P1 port which size is 32 bytes",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0xE1",
"EventName": "cpa_p0_wr_dat",
"BriefDescription": "Number of write ops transmitted by the P0 port",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0xE2",
"EventName": "cpa_p0_rd_dat",
"BriefDescription": "Number of read ops transmitted by the P0 port",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0x83",
"EventName": "cpa_p0_rd_dat_64b",
"BriefDescription": "Number of read ops transmitted by the P0 port which size is 64 bytes",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"ConfigCode": "0x84",
"EventName": "cpa_p0_rd_dat_32b",
"BriefDescription": "Number of read ops transmitted by the P0 port which size is 32 bytes",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"MetricExpr": "(cpa_p1_wr_dat * 64 + cpa_p1_rd_dat_64b * 64 + cpa_p1_rd_dat_32b * 32) / cpa_cycles",
"BriefDescription": "Average bandwidth of CPA Port 1",
"MetricGroup": "CPA",
"MetricName": "cpa_p1_avg_bw",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
},
{
"MetricExpr": "(cpa_p0_wr_dat * 64 + cpa_p0_rd_dat_64b * 64 + cpa_p0_rd_dat_32b * 32) / cpa_cycles",
"BriefDescription": "Average bandwidth of CPA Port 0",
"MetricGroup": "CPA",
"MetricName": "cpa_p0_avg_bw",
"Compat": "0x00000030",
"Unit": "hisi_sicl,cpa"
}
]
...@@ -277,6 +277,7 @@ static struct map { ...@@ -277,6 +277,7 @@ static struct map {
{ "CPU-M-CF", "cpum_cf" }, { "CPU-M-CF", "cpum_cf" },
{ "CPU-M-SF", "cpum_sf" }, { "CPU-M-SF", "cpum_sf" },
{ "UPI LL", "uncore_upi" }, { "UPI LL", "uncore_upi" },
{ "hisi_sicl,cpa", "hisi_sicl,cpa"},
{ "hisi_sccl,ddrc", "hisi_sccl,ddrc" }, { "hisi_sccl,ddrc", "hisi_sccl,ddrc" },
{ "hisi_sccl,hha", "hisi_sccl,hha" }, { "hisi_sccl,hha", "hisi_sccl,hha" },
{ "hisi_sccl,l3c", "hisi_sccl,l3c" }, { "hisi_sccl,l3c", "hisi_sccl,l3c" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment