
From: Yicong Yang <yangyicong@hisilicon.com> driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/ICRSOQ ---------------------------------------------------------------------- Signed-off-by: Yicong Yang <yangyicong@hisilicon.com> Signed-off-by: Qinxin Xia <xiaqinxin@huawei.com> Signed-off-by: Qizhi Zhang <zhangqizhi3@h-partners.com> Signed-off-by: JiangShui Yang <yangjiangshui@h-partners.com> --- .../arm64/hisilicon/hip09/sys/uncore-uc.json | 238 +++++++++++++++++- 1 file changed, 234 insertions(+), 4 deletions(-) diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-uc.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-uc.json index 42e64ecbc4b3..27c7625e2638 100644 --- a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-uc.json +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-uc.json @@ -67,6 +67,13 @@ "Compat": "0x00000030", "Unit": "hisi_sccl,uc" }, + { + "EventCode": "0x18", + "EventName": "cpu_rd128", + "BriefDescription": "Count of the number of the cpu_rd128 request that come from cpu", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, { "EventCode": "0x19", "EventName": "cpu_rs64", @@ -74,6 +81,13 @@ "Compat": "0x00000030", "Unit": "hisi_sccl,uc" }, + { + "EventCode": "0x1a", + "EventName": "cpu_rs128", + "BriefDescription": "Count of the number of the cpu_rs128 request that come from cpu", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, { "EventCode": "0x1C", "EventName": "cpu_mru", @@ -102,6 +116,34 @@ "Compat": "0x00000030", "Unit": "hisi_sccl,uc" }, + { + "EventCode": "0x33", + "EventName": "ext2uc_ru64", + "BriefDescription": "Count of the number of the 64B ReadUnique request that come from ext", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0x34", + "EventName": "ext2uc_ru128", + "BriefDescription": "Count of the number of the 128B ReadUnique request that come from ext", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0x35", + "EventName": "ext2uc_rs64", + "BriefDescription": "Count of the number of the 64B ReadShared request that come from ext", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0x36", + "EventName": "ext2uc_rs128", + "BriefDescription": "Count of the number of the 128B ReadShared request that come from ext", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, { "EventCode": "0x47", "EventName": "uc2ext_read_uring", @@ -263,20 +305,118 @@ "Compat": "0x00000030", "Unit": "hisi_sccl,uc" }, + { + "EventCode": "0xB1", + "EventName": "hpipe_lookup", + "BriefDescription": "Count of SPIPE lookup", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, { "EventCode": "0xB3", - "EventName": "spipe_hit", + "EventName": "hpipe_hit", "BriefDescription": "Count of the number of spipe hit", "Compat": "0x00000030", "Unit": "hisi_sccl,uc" }, + { + "EventCode": "0xB4", + "EventName": "hpipe_rd_hit", + "BriefDescription": "Count of SPIPE read hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xB5", + "EventName": "hpipe_wr_hit", + "BriefDescription": "Count of SPIPE write hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xBA", + "EventName": "hc_pipe_lookup", + "BriefDescription": "Count of HC_PIPE lookup", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xBB", + "EventName": "hc_pipe_hit_1k", + "BriefDescription": "Count of HC_PIPE hit 1k", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xBD", + "EventName": "hc_pipe_rd_hit", + "BriefDescription": "Count of HC_PIPE read hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xBE", + "EventName": "hc_pipe_wr_hit", + "BriefDescription": "Count of HC_PIPE write hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xCE", + "EventName": "sc_pipe_lookup", + "BriefDescription": "Count of SC_PIPE lookup", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xCF", + "EventName": "sc_pipe_hit_sector", + "BriefDescription": "Count of SC_PIPE hit sector", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xD1", + "EventName": "sc_pipe_rd_hit", + "BriefDescription": "Count of SC_PIPE read hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xD2", + "EventName": "sc_pipe_wr_hit", + "BriefDescription": "Count of SC_PIPE write hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xD9", + "EventName": "spipe_lookup", + "BriefDescription": "Count of HPIPE lookup", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, { "EventCode": "0xDB", - "EventName": "hpipe_hit", + "EventName": "spipe_hit", "BriefDescription": "Count of the number of hpipe hit", "Compat": "0x00000030", "Unit": "hisi_sccl,uc" }, + { + "EventCode": "0xDC", + "EventName": "spipe_rd_hit", + "BriefDescription": "Count of HPIPE read hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "EventCode": "0xDD", + "EventName": "spipe_wr_hit", + "BriefDescription": "Count of HPIPE write hit", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, { "EventCode": "0xFA", "EventName": "cring_rxdat_cnt", @@ -355,11 +495,29 @@ "Compat": "0x00000030", "Unit": "hisi_sccl,uc" }, + { + "MetricName": "uc2uring_rx_merge_dat_bw", + "MetricExpr": "uring_rxreqdat_cnt * 64 / duration_time / 1e6", + "MetricGroup": "UC_bw", + "BriefDescription": "Average bandwidth of UC received merged data bandwidth", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "uc2uring_tx_merge_dat_bw", + "MetricExpr": "uring_txreqdat_cnt * 64 / duration_time / 1e6", + "MetricGroup": "UC_bw", + "BriefDescription": "Average bandwidth of UC transmit merged data bandwidth", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, { "MetricName": "uc2hbm_rd_bw", "MetricExpr": "(uc2hbm_bank0_rd64 * 64 + uc2hbm_bank0_rd128 * 128 + uc2hbm_bank1_rd64 * 64 + uc2hbm_bank1_rd128 * 128) / duration_time / 1e6", "MetricGroup": "UC_bw", - "BriefDescription": "Average latency of UC reading HBM", + "BriefDescription": "Average bandwidth of UC reading HBM", "ScaleUnit": "1MB/s", "Compat": "0x00000030", "Unit": "hisi_sccl,uc" @@ -368,9 +526,81 @@ "MetricName": "uc2hbm_wr_bw", "MetricExpr": "(uc2hbm_bank0_wr64 * 64 + uc2hbm_bank0_wr128 * 128 + uc2hbm_bank1_wr64 * 64 + uc2hbm_bank1_wr128 * 128) / duration_time / 1e6", "MetricGroup": "UC_bw", - "BriefDescription": "Average latency of UC writing HBM", + "BriefDescription": "Average bandwidth of UC writing HBM", "ScaleUnit": "1MB/s", "Compat": "0x00000030", "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "spipe_hit_ratio", + "MetricExpr": "spipe_hit / spipe_lookup", + "MetricGroup": "UC_hit_ratio", + "BriefDescription": "Hit ratio of SPIPE", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "hpipe_hit_ratio", + "MetricExpr": "hpipe_hit / hpipe_lookup", + "MetricGroup": "UC_hit_ratio", + "BriefDescription": "Hit ratio of HPIPE", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "hc_pipe_hit_ratio", + "MetricExpr": "hc_pipe_hit_1k / hc_pipe_lookup", + "MetricGroup": "UC_hit_ratio", + "BriefDescription": "Hit ratio of HC_PIPE", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "sc_pipe_hit_ratio", + "MetricExpr": "sc_pipe_hit_sector / sc_pipe_lookup", + "MetricGroup": "UC_hit_ratio", + "BriefDescription": "Hit ratio of SC_PIPE", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "cring_rd_concurrency_numa", + "MetricExpr": "(cpu_rd64 + cpu_rd128 + cpu_rs64 + cpu_rs128 + cpu_mru) / duration_time", + "MetricGroup": "UC_concurrency", + "BriefDescription": "Concurrency of read requests from UC cring on NUMA mode", + "ScaleUnit": "1req/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "cring_rd_concurrency_uma", + "MetricExpr": "(cpu_rd64 + cpu_rd128 + cpu_rs64 + cpu_rs128 + cpu_mru) * cring_txdat_cnt / duration_time / (cring_txdat_cnt + uring_txdat_cnt)", + "MetricGroup": "UC_concurrency", + "BriefDescription": "Concurrency of read requests from UC cring on UMA mode", + "ScaleUnit": "1req/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "uring_rd_concurrency_numa", + "MetricExpr": "(ext2uc_ru64 + ext2uc_ru128 + ext2uc_rs64 + ext2uc_rs128) / duration_time", + "MetricGroup": "UC_concurrency", + "BriefDescription": "Concurrency of read requests from UC uring on UMA mode", + "ScaleUnit": "1req/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" + }, + { + "MetricName": "hbm_read_concurrency", + "MetricExpr": "(2 * (uc2hbm_bank0_rd128 + uc2hbm_bank1_rd128) + uc2hbm_bank0_rd64 + uc2hbm_bank1_rd64) / duration_time", + "MetricGroup": "UC_concurrency", + "BriefDescription": "Concurrency of read requests from UC uring on UMA mode", + "ScaleUnit": "1req/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,uc" } ] -- 2.43.0