
driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/ICRSOQ ---------------------------------------------------------------------- a) Add support for Hisilicon MN PMU perf metric: · Average latency of dvmsync/no-sync snoop request; · Average latency of dvmsync/no-sync request. 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> --- .../hisilicon/hip12/uncore-mn-metric.json | 58 +++++++++++++++++++ tools/perf/pmu-events/jevents.py | 1 + 2 files changed, 59 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip12/uncore-mn-metric.json diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip12/uncore-mn-metric.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip12/uncore-mn-metric.json new file mode 100644 index 000000000000..8d68ce7ffb31 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip12/uncore-mn-metric.json @@ -0,0 +1,58 @@ +[ + { + "MetricName": "snp_dvm_average_latency", + "MetricExpr": "snp_dvm_latency / snp_dvm_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Non-Sync snoop request average latency", + "ScaleUnit": "1cycle" + }, + { + "MetricName": "pa_req_dvm_average_latency", + "MetricExpr": "pa_req_dvm_latency / pa_req_dvm_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Non-Sync request average latency from PA", + "ScaleUnit": "1cycle" + }, + { + "MetricName": "mn_req_dvm_average_latency", + "MetricExpr": "mn_req_dvm_latency / mn_req_dvm_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Non-Sync request average latency from MN", + "ScaleUnit": "1cycle" + }, + { + "MetricName": "l3t_req_dvm_average_latency", + "MetricExpr": "l3t_req_dvm_latency / l3t_req_dvm_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Non-Sync request average latency from L3T", + "ScaleUnit": "1cycle" + }, + { + "MetricName": "snp_dvmsync_average_latency", + "MetricExpr": "snp_dvmsync_latency / snp_dvmsync_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Sync snoop request average latency", + "ScaleUnit": "1cycle" + }, + { + "MetricName": "pa_req_dvmsync_average_latency", + "MetricExpr": "pa_req_dvmsync_latency / pa_req_dvmsync_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Sync request average latency from PA", + "ScaleUnit": "1cycle" + }, + { + "MetricName": "mn_req_dvmsync_average_latency", + "MetricExpr": "mn_req_dvmsync_latency / mn_req_dvmsync_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Sync request average latency from MN", + "ScaleUnit": "1cycle" + }, + { + "MetricName": "l3t_req_dvmsync_average_latency", + "MetricExpr": "l3t_req_dvmsync_latency / l3t_req_dvmsync_num", + "MetricGroup": "MN_AVG_LAT", + "BriefDescription": "Count of one DVM Sync request average latency from L3T", + "ScaleUnit": "1cycle" + } +] diff --git a/tools/perf/pmu-events/jevents.py b/tools/perf/pmu-events/jevents.py index 0612dcef48c4..63c33aac6ab4 100755 --- a/tools/perf/pmu-events/jevents.py +++ b/tools/perf/pmu-events/jevents.py @@ -284,6 +284,7 @@ class JsonEvent: 'hisi_sccl,hha': 'hisi_sccl,hha', 'hisi_sccl,l3c': 'hisi_sccl,l3c', 'hisi_scl,noc': 'hisi_scl,noc', + 'hisi_scl,mn': 'hisi_scl,mn', 'imx8_ddr': 'imx8_ddr', 'L3PMC': 'amd_l3', 'DFPMC': 'amd_df', -- 2.43.0