
From: Junhao He <hejunhao3@huawei.com> driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/ICRSOQ ---------------------------------------------------------------------- Add support to parse sys metrics. Signed-off-by: Junhao He <hejunhao3@huawei.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-cpa.json | 83 ++++++ .../hisilicon/hip09/sys/uncore-ddrc.json | 154 ++++++++++ .../arm64/hisilicon/hip09/sys/uncore-hha.json | 191 ++++++++++++ .../arm64/hisilicon/hip09/sys/uncore-l3c.json | 142 +++++++++ .../arm64/hisilicon/hip09/sys/uncore-mn.json | 163 +++++++++++ .../arm64/hisilicon/hip09/sys/uncore-noc.json | 158 ++++++++++ .../arm64/hisilicon/hip09/sys/uncore-pa.json | 274 ++++++++++++++++++ .../hisilicon/hip09/sys/uncore-sllc.json | 204 +++++++++++++ 8 files changed, 1369 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-cpa.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-hha.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-l3c.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-mn.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-noc.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-pa.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-sllc.json diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-cpa.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-cpa.json new file mode 100644 index 000000000000..705efb48f99b --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-cpa.json @@ -0,0 +1,83 @@ +[ + { + "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" + }, + { + "MetricName": "cpa_p1_avg_bw", + "MetricExpr": "(cpa_p1_wr_dat * 64 + cpa_p1_rd_dat_64b * 64 + cpa_p1_rd_dat_32b * 32) / duration_time / 1e6", + "BriefDescription": "Average bandwidth of CPA Port 1", + "MetricGroup": "CPA_bw", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sicl,cpa" + }, + { + "MetricName": "cpa_p0_avg_bw", + "MetricExpr": "(cpa_p0_wr_dat * 64 + cpa_p0_rd_dat_64b * 64 + cpa_p0_rd_dat_32b * 32) / duration_time / 1e6", + "BriefDescription": "Average bandwidth of CPA Port 0", + "MetricGroup": "CPA_bw", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sicl,cpa" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-ddrc.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-ddrc.json new file mode 100644 index 000000000000..331a44d2eb59 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-ddrc.json @@ -0,0 +1,154 @@ +[ + { + "EventCode": "0x00", + "EventName": "ddrc_cycles", + "BriefDescription": "Count of DDRC cycles", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x00", + "EventName": "cycles", + "BriefDescription": "Count of DDRC cycles", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x01", + "EventName": "ddrc_active_cmd", + "BriefDescription": "Count of DDRC active commands", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x02", + "EventName": "ddrc_precharge_cmd", + "BriefDescription": "Count of DDRC precharge commands", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x03", + "EventName": "ddrc_cas_cmd", + "BriefDescription": "Count of DDRC read and write commands", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x30", + "EventName": "ddrc_rdwr_changes", + "BriefDescription": "Count the DDRC read and write changes", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x31", + "EventName": "ddrc_rank_changes", + "BriefDescription": "Count the DDRC rank changes", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x32", + "EventName": "ddrc_bg_changes", + "BriefDescription": "Count the DDRC BG changes", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x41", + "EventName": "ddrc_read_cmd", + "BriefDescription": "Count of DDRC read commands", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x44", + "EventName": "ddrc_write_cmd", + "BriefDescription": "Count of DDRC write commands", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x80", + "EventName": "ddrc_read_cmd_occupancy", + "BriefDescription": "Count of cycles occupied by the read command in the queue", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x81", + "EventName": "ddrc_write_cmd_occupancy", + "BriefDescription": "Count of cycles occupied by the write command in the queue", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x83", + "EventName": "flux_wr", + "BriefDescription": "Count of DDRC write commands", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "EventCode": "0x84", + "EventName": "flux_rd", + "BriefDescription": "Count of DDRC read commands", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "MetricName": "ddrc_write_bw", + "MetricExpr": "flux_wr * 4 / duration_time / 1e6", + "MetricGroup": "DDRC_bw", + "BriefDescription": "Average bandwidth of write DDRC memory", + "ScaleUnit": "1MB/s", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "MetricName": "ddrc_read_bw", + "MetricExpr": "flux_rd * 4 / duration_time / 1e6", + "MetricGroup": "DDRC_bw", + "BriefDescription": "Average bandwidth of read DDRC memory", + "ScaleUnit": "1MB/s", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "MetricName": "ddrc_rdwr_bw", + "MetricExpr": "(flux_wr + flux_rd) * 4 / duration_time / 1e6", + "MetricGroup": "DDRC_bw", + "BriefDescription": "Average bandwidth of DDRC (including memory read and write)", + "ScaleUnit": "1MB/s", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "MetricName": "ddrc_read_lat", + "MetricExpr": "ddrc_read_cmd_occupancy / ddrc_read_cmd * (duration_time * 1e9 / ddrc_cycles)", + "MetricGroup": "DDRC_lat", + "BriefDescription": "Average scheduling latency of DDRC read command", + "ScaleUnit": "1ns", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "MetricName": "ddrc_write_lat", + "MetricExpr": "ddrc_write_cmd_occupancy / ddrc_write_cmd * (duration_time * 1e9 / ddrc_cycles)", + "MetricGroup": "DDRC_lat", + "BriefDescription": "Average scheduling of DDRC write command", + "ScaleUnit": "1ns", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + }, + { + "MetricName": "ddrc_rowhit_rate", + "MetricExpr": "1 - ddrc_active_cmd / ddrc_cas_cmd", + "MetricGroup": "DDRC", + "BriefDescription": "Row hit rate of DDRC", + "ScaleUnit": "100%", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,ddrc" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-hha.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-hha.json new file mode 100644 index 000000000000..6e3eac3ba80c --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-hha.json @@ -0,0 +1,191 @@ +[ + { + "EventCode": "0x00", + "EventName": "rx_ops_num", + "BriefDescription": "Number of all operations received by the HHA", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x01", + "EventName": "rx_outer", + "BriefDescription": "Number of all operations received by the HHA from another socket", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x02", + "EventName": "rx_sccl", + "BriefDescription": "Number of all operations received by the HHA from another SCCL in this socket", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x03", + "EventName": "hha_rx_cxl", + "BriefDescription": "Number of operations that HHA has received from CXL", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x13", + "EventName": "hha_rx_cmo", + "BriefDescription": "Count number of CMO operations received by the HHA", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x16", + "EventName": "hha_rx_prefetch_drop", + "BriefDescription": "Count number of prefetch operations dropped by the HHA", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x1a", + "EventName": "hha_rx_ch0", + "BriefDescription": "Count number of all operations received by the HHA from channel 0", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x1b", + "EventName": "hha_rx_ch1", + "BriefDescription": "Count number of all operations received by the HHA from channel 1", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x1c", + "EventName": "hha_rd_ddr_64b", + "BriefDescription": "Count number of read operations sent by HHA to DDRC which size is 64 bytes", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x1d", + "EventName": "hha_wr_ddr_64b", + "BriefDescription": "Count number of write operations sent by HHA to DDRC which size is 64 bytes", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x1e", + "EventName": "hha_rd_ddr_128b", + "BriefDescription": "Count number of read operations sent by HHA to DDRC which size is 128 bytes", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x1f", + "EventName": "hha_wr_ddr_128b", + "BriefDescription": "Count number of write operations sent by HHA to DDRC which size is 128 bytes", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x23", + "EventName": "hha_retry", + "BriefDescription": "Count of the HHA retry", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x2e", + "EventName": "hha_backinvalid", + "BriefDescription": "Count number of HHA back invalid operations", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x55", + "EventName": "hha_cycles", + "BriefDescription": "Count of the HHA cycles", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0x55", + "EventName": "cycles", + "BriefDescription": "Count of the HHA cycles", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0xc5", + "EventName": "hha_req_lat", + "BriefDescription": "Count the total latency that HHA completes all requests", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "EventCode": "0xcd", + "EventName": "hha_req_cnt", + "BriefDescription": "Count the total operations that HHA receives", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "MetricName": "hha_read_ddrc_bw", + "MetricExpr": "(hha_rd_ddr_64b * 8 + hha_rd_ddr_128b * 16) / duration_time / 1e6", + "MetricGroup": "HHA_bw", + "BriefDescription": "Average bandwidth of reading DDRC", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "MetricName": "hha_write_ddrc_bw", + "MetricExpr": "(hha_wr_ddr_64b * 8 + hha_wr_ddr_128b * 16) / duration_time / 1e6", + "MetricGroup": "HHA_bw", + "BriefDescription": "Average bandwidth of writing DDRC", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "MetricName": "hha_cross_chip_ops_rate", + "MetricExpr": "rx_outer / rx_ops_num", + "MetricGroup": "HHA", + "BriefDescription": "Rate of cross-chip operations received by HHA", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "MetricName": "hha_cross_die_ops_rate", + "MetricExpr": "rx_sccl / rx_ops_num", + "MetricGroup": "HHA", + "BriefDescription": "Rate of cross-die operations received by HHA", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "MetricName": "hha_channel0_ops_rate", + "MetricExpr": "hha_rx_ch0 / rx_ops_num", + "MetricGroup": "HHA", + "BriefDescription": "Rate of channel 0 operations received by HHA", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "MetricName": "hha_channel1_ops_rate", + "MetricExpr": "hha_rx_ch1 / rx_ops_num", + "MetricGroup": "HHA_lat", + "BriefDescription": "Rate of channel 1 operations received by HHA", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + }, + { + "MetricName": "hha_req_average_lat", + "MetricExpr": "hha_req_lat / hha_req_cnt * (duration_time * 1e9 / hha_cycles)", + "MetricGroup": "HHA_lat", + "BriefDescription": "Average latency that HHA completes all requests", + "ScaleUnit": "1ns", + "Compat": "0x00000030", + "Unit": "hisi_sccl,hha" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-l3c.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-l3c.json new file mode 100644 index 000000000000..1d905beec448 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-l3c.json @@ -0,0 +1,142 @@ +[ + { + "EventCode": "0x29", + "EventName": "l3c_back_invalid", + "BriefDescription": "Count number of L3C back invalid operations", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x3c", + "EventName": "l3c_cpu_evict", + "BriefDescription": "Count number of evict from CPU core", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x40", + "EventName": "l3c_retry_cpu", + "BriefDescription": "Count number of retry that L3C suppresses the CPU operations", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x41", + "EventName": "l3c_retry_ring", + "BriefDescription": "Count number of retry that L3C suppresses the ring operations", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x48", + "EventName": "l3c_hit", + "BriefDescription": "Count number of hit data from L3C to CPU core", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x7f", + "EventName": "l3c_cycles", + "BriefDescription": "Count of L3C cycles", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x7f", + "EventName": "cycles", + "BriefDescription": "Count of L3C cycles", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x80", + "EventName": "cpu_read_l3c_lat", + "Filter": "tt_core=0xff", + "BriefDescription": "Count the total latency that L3C completes the cluster CPU read requests", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0x83", + "EventName": "l3c_read_hha_lat", + "Filter": "tt_core=0xff,tt_req=0x4", + "BriefDescription": "Count the total latency that HHA completes the L3C read requests", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0xb8", + "EventName": "l3c_ref", + "BriefDescription": "Count number of all CPU accessed L3C", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0xb9", + "EventName": "dat_access", + "BriefDescription": "Count number of the cluster CPU accessed L3C", + "Filter": "tt_core=0xff", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0xc0", + "EventName": "cpu_read_l3c_sum", + "Filter": "tt_core=0xff", + "BriefDescription": "Count of the requests issued by the cluster CPU read L3C", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0xc3", + "EventName": "l3c_read_hha_sum", + "Filter": "tt_core=0xff,tt_req=0x4", + "BriefDescription": "Count number of L3C read access to HHA", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "EventCode": "0xce", + "EventName": "l3c_retry_alloc", + "Filter": "tt_core=0xff", + "BriefDescription": "Count of the L3C retry CPU", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "MetricName": "l3c_hit_rate", + "MetricExpr": "l3c_hit / l3c_ref", + "MetricGroup": "L3C", + "BriefDescription": "hit rate of L3C", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "MetricName": "l3c_access_bw", + "MetricExpr": "l3c_ref * 64 / duration_time / 1e6", + "MetricGroup": "L3C_bw", + "BriefDescription": "Average bandwidth of CPU access L3C", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "MetricName": "cpu_read_l3c_average_lat", + "MetricExpr": "cpu_read_l3c_lat / cpu_read_l3c_sum * (duration_time * 1e9 / l3c_cycles)", + "MetricGroup": "L3C_lat", + "BriefDescription": "Average latency of CPU reading L3C", + "ScaleUnit": "1ns", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + }, + { + "MetricName": "l3c_read_hha_average_lat", + "MetricExpr": "l3c_read_hha_lat / l3c_read_hha_sum * (duration_time * 1e9 / l3c_cycles)", + "MetricGroup": "L3C_lat", + "BriefDescription": "Average latency of L3C reading HHA", + "ScaleUnit": "1ns", + "Compat": "0x00000030", + "Unit": "hisi_sccl,l3c" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-mn.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-mn.json new file mode 100644 index 000000000000..fac1a3300ef8 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-mn.json @@ -0,0 +1,163 @@ +[ + { + "EventCode": "0x82", + "EventName": "l3t_req_dvm_latency", + "BriefDescription": "Count of total DVM Non-Sync requests latency from L3T", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x09", + "EventName": "l3t_req_dvm_num", + "BriefDescription": "Count the number of DVM Non-Sync requests from L3T", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x83", + "EventName": "l3t_req_dvmsync_latency", + "BriefDescription": "Count of total DVM -Sync requests latency from L3T", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x0A", + "EventName": "l3t_req_dvmsync_num", + "BriefDescription": "Count the number of DVM Sync requests from L3T", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x84", + "EventName": "mn_req_dvm_latency", + "BriefDescription": "Count of total DVM Non-Sync requests latency from others MN", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x0B", + "EventName": "mn_req_dvm_num", + "BriefDescription": "Count the number of DVM Non-Sync requests from others MN", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x85", + "EventName": "mn_req_dvmsync_latency", + "BriefDescription": "Count of total DVM -Sync requests latency from others MN", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x0C", + "EventName": "mn_req_dvmsync_num", + "BriefDescription": "Count the number of DVM Sync requests from others MN", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x86", + "EventName": "pa_req_dvm_latency", + "BriefDescription": "Count of total DVM Non-Sync requests latency from PA", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x0D", + "EventName": "pa_req_dvm_num", + "BriefDescription": "Count the number of DVM Non-Sync requests from PA", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x87", + "EventName": "pa_req_dvmsync_latency", + "BriefDescription": "Count of total DVM -Sync requests latency from PA", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x0E", + "EventName": "pa_req_dvmsync_num", + "BriefDescription": "Count the number of DVM Sync requests from PA", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x00", + "EventName": "req_eobarrier_num", + "BriefDescription": "Count the number of eobarrier requests from CPU", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x01", + "EventName": "req_ecbarrier_num", + "BriefDescription": "Count the number of ecbarrier requests from CPU", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x02", + "EventName": "req_dvmop_num", + "BriefDescription": "Count the number of DVM (DVM Sync + DVM Non-Sync) opention requests", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x03", + "EventName": "req_dvmsync_num", + "BriefDescription": "Count the number of DVM Sync requests", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x04", + "EventName": "req_retry_num", + "BriefDescription": "Count the number of DVM retry requests", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x05", + "EventName": "req_writenosnp_num", + "BriefDescription": "Count the number of writenosnp requests", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x06", + "EventName": "req_readnosnp_num", + "BriefDescription": "Count the number of readnosnp requests", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x80", + "EventName": "snp_dvm_latency", + "BriefDescription": "Count of total DVM Non-Sync snoop requests latency", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x07", + "EventName": "snp_dvm_num", + "BriefDescription": "Count the number of DVM Non-Sync snoop requests", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x81", + "EventName": "snp_dvmsync_latency", + "BriefDescription": "Count of total DVM Sync snoop requests latency", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + }, + { + "EventCode": "0x08", + "EventName": "snp_dvmsync_num", + "BriefDescription": "Count the number of DVM Sync snoop requests", + "Compat": "0x00000000", + "Unit": "hisi_scl,mn" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-noc.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-noc.json new file mode 100644 index 000000000000..c45edcb8ebf9 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-noc.json @@ -0,0 +1,158 @@ +[ + { + "EventCode": "0x0e", + "EventName": "noc_cycles", + "BriefDescription": "Count of noc cycles", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x0e", + "EventName": "cycles", + "BriefDescription": "Count of noc cycles", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x01", + "EventName": "cw_ingress_fail", + "BriefDescription": "Count the number of retry data flits clockwise from subsys to Ring", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x03", + "EventName": "cw_egress_fail", + "BriefDescription": "Count the number of retry data flits clockwise from Ring to subsys", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x09", + "EventName": "cc_ingress_fail", + "BriefDescription": "Count the number of retry data flits counterclockwise from subsys to Ring", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x0b", + "EventName": "cc_egress_fail", + "BriefDescription": "Count the number of retry data flits counterclockwise from Ring to subsys", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x05", + "EventName": "cw_main_flow_sum", + "BriefDescription": "Count the number of clockwise main Ring data flits", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x0d", + "EventName": "cc_main_flow_sum", + "BriefDescription": "Count the number of counterclockwise main Ring data flits", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x12", + "EventName": "egress_buf_full", + "BriefDescription": "Count the number of data buffer full from Ring to subsys", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x17", + "EventName": "egress_flow_sum", + "BriefDescription": "Count the number of data flits from Ring to subsys", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x19", + "EventName": "ingress_buf_full", + "BriefDescription": "Count the number of data buffer full from subsys to Ring", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "EventCode": "0x1a", + "EventName": "ingress_flow_sum", + "BriefDescription": "Count the number of data flits from subsys to Ring", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "ingress_flow_bw", + "MetricExpr": "ingress_flow_sum * 64 / duration_time / 1e6", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth from subsys to Ring", + "ScaleUnit": "1MB/s", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "ingress_flow_bw_occupancy", + "MetricExpr": "ingress_flow_sum / noc_cycles", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth occupancy from subsys to Ring", + "ScaleUnit": "100%", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "egress_flow_bw", + "MetricExpr": "egress_flow_sum * 64 / duration_time / 1e6", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth from Ring to subsys", + "ScaleUnit": "1MB/s", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "egress_flow_bw_occupancy", + "MetricExpr": "egress_flow_sum / noc_cycles", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth occupancy from Ring to subsys", + "ScaleUnit": "100%", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "cw_main_flow_bw", + "MetricExpr": "cw_main_flow_sum * 64 / duration_time / 1e6", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth of clockwise main Ring", + "ScaleUnit": "1MB/s", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "cw_main_flow_bw_occupancy", + "MetricExpr": "cw_main_flow_sum / noc_cycles", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth occupancy of clockwise main Ring", + "ScaleUnit": "100%", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "cw_main_flow_bw", + "MetricExpr": "cc_main_flow_sum * 64 / duration_time / 1e6", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth of counterclockwise main Ring", + "ScaleUnit": "1MB/s", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + }, + { + "MetricName": "cw_main_flow_bw_occupancy", + "MetricExpr": "cc_main_flow_sum / noc_cycles", + "MetricGroup": "NOC_bw", + "BriefDescription": "Average data bandwidth occupancy of counterclockwise main Ring", + "ScaleUnit": "100%", + "Compat": "0x00000000", + "Unit": "hisi_scl,noc" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-pa.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-pa.json new file mode 100644 index 000000000000..0126043edb77 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-pa.json @@ -0,0 +1,274 @@ +[ + { + "EventCode": "0x00", + "EventName": "tx_req", + "BriefDescription": "Count of the requests transmitted by PA", + "Compat": "0x00000040", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x01", + "EventName": "tx_dat", + "BriefDescription": "Count of the data transmitted by PA", + "Compat": "0x00000040", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x02", + "EventName": "tx_snp", + "BriefDescription": "Count of the snoopy transmitted by PA", + "Compat": "0x00000040", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x07", + "EventName": "rx_req", + "BriefDescription": "Count of the requests received by PA", + "Compat": "0x00000040", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x08", + "EventName": "rx_dat", + "BriefDescription": "Count of the data received by PA", + "Compat": "0x00000040", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x09", + "EventName": "rx_snp", + "BriefDescription": "Count of the snoopy received by PA", + "Compat": "0x00000040", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x78", + "EventName": "pa_cycles", + "BriefDescription": "Count of PA cycles", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x78", + "EventName": "cycle", + "BriefDescription": "Count of PA cycles", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x40", + "EventName": "rx_req", + "BriefDescription": "Count of the requests flit from Ring to PA link0", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x40", + "EventName": "pa_rx_req_link0", + "BriefDescription": "Count of the requests flit from Ring to PA link0", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x41", + "EventName": "pa_rx_req_link1", + "BriefDescription": "Count of the requests flit from Ring to PA link1", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x42", + "EventName": "pa_rx_req_link2", + "BriefDescription": "Count of the requests flit from Ring to PA link2", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x43", + "EventName": "pa_rx_req_link3", + "BriefDescription": "Count of the requests flit from Ring to PA link3", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x44", + "EventName": "pa_rx_data_link0", + "BriefDescription": "Count of the data flit from Ring to PA link0", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x45", + "EventName": "pa_rx_data_link1", + "BriefDescription": "Count of the data flit from Ring to PA link1", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x46", + "EventName": "pa_rx_data_link2", + "BriefDescription": "Count of the data flit from Ring to PA link2", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x47", + "EventName": "pa_rx_data_link3", + "BriefDescription": "Count of the data flit from Ring to PA link3", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x5c", + "EventName": "tx_req", + "BriefDescription": "Count of the total flit transmitted by PA link0", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x60", + "EventName": "pa_tx_req_link0", + "BriefDescription": "Count of the requests flit from PA link0 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x61", + "EventName": "pa_tx_req_link1", + "BriefDescription": "Count of the requests flit from PA link1 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x62", + "EventName": "pa_tx_req_link2", + "BriefDescription": "Count of the requests flit from PA link2 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x63", + "EventName": "pa_tx_req_link3", + "BriefDescription": "Count of the requests flit from PA link3 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x64", + "EventName": "pa_tx_data_link0", + "BriefDescription": "Count of the data flit from PA link0 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x65", + "EventName": "pa_tx_data_link1", + "BriefDescription": "Count of the data flit from PA link1 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x66", + "EventName": "pa_tx_data_link2", + "BriefDescription": "Count of the data flit from PA link2 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "EventCode": "0x67", + "EventName": "pa_tx_data_link3", + "BriefDescription": "Count of the data flit from PA link3 to Ring", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_rx_bw", + "MetricExpr": "(pa_rx_data_link0 + pa_rx_data_link1 + pa_rx_data_link2 + pa_rx_data_link3) * 20 / duration_time / 1e6", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth from Ring to PA", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_tx_bw", + "MetricExpr": "(pa_tx_data_link0 + pa_tx_data_link1 + pa_tx_data_link2 + pa_tx_data_link3) * 20 / duration_time / 1e6", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth from PA to Ring", + "ScaleUnit": "1MB/s", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_rx_link0_bw_occupancy", + "MetricExpr": "pa_rx_data_link0 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from Ring to PA link0", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_rx_link1_bw_occupancy", + "MetricExpr": "pa_rx_data_link1 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from Ring to PA link1", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_rx_link2_bw_occupancy", + "MetricExpr": "pa_rx_data_link2 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from Ring to PA link2", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_rx_link3_bw_occupancy", + "MetricExpr": "pa_rx_data_link3 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from Ring to PA link3", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_tx_link0_bw_occupancy", + "MetricExpr": "pa_tx_data_link0 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from PA link0 to Ring", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_tx_link1_bw_occupancy", + "MetricExpr": "pa_tx_data_link1 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from PA link1 to Ring", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_tx_link2_bw_occupancy", + "MetricExpr": "pa_tx_data_link2 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from PA link2 to Ring", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + }, + { + "MetricName": "pa_tx_link3_bw_occupancy", + "MetricExpr": "pa_tx_data_link3 / pa_cycles", + "MetricGroup": "PA_bw", + "BriefDescription": "Average data bandwidth occupancy from PA link3 to Ring", + "ScaleUnit": "100%", + "Compat": "0x00000030", + "Unit": "hisi_sicl,pa" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-sllc.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-sllc.json new file mode 100644 index 000000000000..18b18e46c4ec --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-sllc.json @@ -0,0 +1,204 @@ +[ + { + "EventCode": "0x09", + "EventName": "sllc_cycles", + "BriefDescription": "Count of SLLC cycles", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x09", + "EventName": "cycles", + "BriefDescription": "Count of SLLC cycles", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x20", + "EventName": "sllc_rx_req_lat", + "BriefDescription": "Total latency SLLC taken to receive requests", + "Filter": "tracetag_en", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x21", + "EventName": "sllc_rx_data_lat", + "BriefDescription": "Total latency SLLC taken to receive data", + "Filter": "tracetag_en", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x24", + "EventName": "sllc_tx_req_lat", + "BriefDescription": "Total latency SLLC taken to transmit requests", + "Filter": "tracetag_en", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x25", + "EventName": "sllc_tx_data_lat", + "BriefDescription": "Total latency SLLC taken to transmit data", + "Filter": "tracetag_en", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x30", + "EventName": "rx_req", + "BriefDescription": "Count of the requests received by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x30", + "EventName": "sllc_rx_req", + "BriefDescription": "Count of the requests received by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x31", + "EventName": "rx_data", + "BriefDescription": "Count of the data received by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x31", + "EventName": "sllc_rx_data", + "BriefDescription": "Count of the data received by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x32", + "EventName": "sllc_rx_snp", + "BriefDescription": "Count of the snoop received by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x33", + "EventName": "sllc_rx_rsp", + "BriefDescription": "Count of the response received by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x34", + "EventName": "tx_req", + "BriefDescription": "Count of the requests transmitted by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x34", + "EventName": "sllc_tx_req", + "BriefDescription": "Count of the requests transmitted by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x35", + "EventName": "tx_data", + "BriefDescription": "Count of the data transmitted by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x35", + "EventName": "sllc_tx_data", + "BriefDescription": "Count of the data transmitted by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x36", + "EventName": "sllc_tx_snp", + "BriefDescription": "Count of the snoop transmitted by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "EventCode": "0x37", + "EventName": "sllc_tx_rsp", + "BriefDescription": "Count of the response transmitted by SLLC", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_rx_req_average_lat", + "MetricExpr": "sllc_rx_req_lat / sllc_rx_req * (duration_time * 1e9 / sllc_cycles)", + "MetricGroup": "sllc_lat", + "BriefDescription": "Average latency of SLLC receive requests", + "ScaleUnit": "1ns", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_rx_data_average_lat", + "MetricExpr": "sllc_rx_data_lat / sllc_rx_data * (duration_time * 1e9 / sllc_cycles)", + "MetricGroup": "sllc_lat", + "BriefDescription": "Average latency of SLLC receive data", + "ScaleUnit": "1ns", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_tx_req_average_lat", + "MetricExpr": "sllc_tx_req_lat / sllc_tx_req * (duration_time * 1e9 / sllc_cycles)", + "MetricGroup": "sllc_lat", + "BriefDescription": "Average latency of SLLC transmit requests", + "ScaleUnit": "1ns", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_tx_data_average_lat", + "MetricExpr": "sllc_tx_data_lat / sllc_tx_data * (duration_time * 1e9 / sllc_cycles)", + "MetricGroup": "sllc_lat", + "BriefDescription": "Average latency of SLLC transmit data", + "ScaleUnit": "1ns", + "Compat": "0x00000030", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_rx_bw", + "MetricExpr": "sllc_rx_data * 64 / duration_time / 1e6", + "MetricGroup": "sllc_bw", + "BriefDescription": "Average bandwidth of SLLC receive data", + "ScaleUnit": "1MB/s", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_rx_bw_occupancy", + "MetricExpr": "sllc_rx_data / sllc_cycles", + "MetricGroup": "sllc_bw", + "BriefDescription": "Average bandwidth occupancy of SLLC receive data", + "ScaleUnit": "100%", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_tx_bw", + "MetricExpr": "sllc_tx_data * 64 / duration_time / 1e6", + "MetricGroup": "sllc_bw", + "BriefDescription": "Average bandwidth of SLLC transmit data", + "ScaleUnit": "1MB/s", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + }, + { + "MetricName": "sllc_tx_bw_occupancy", + "MetricExpr": "sllc_tx_data / sllc_cycles", + "MetricGroup": "sllc_bw", + "BriefDescription": "Average bandwidth occupancy of SLLC transmit data", + "ScaleUnit": "100%", + "Compat": "0x000000(30|40)", + "Unit": "hisi_sccl,sllc" + } +] -- 2.43.0