[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1668411720-3581-6-git-send-email-renyu.zj@linux.alibaba.com>
Date: Mon, 14 Nov 2022 15:41:59 +0800
From: Jing Zhang <renyu.zj@...ux.alibaba.com>
To: linux-arm-kernel@...ts.infradead.org,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
John Garry <john.garry@...wei.com>,
Will Deacon <will@...nel.org>,
James Clark <james.clark@....com>,
Mike Leach <mike.leach@...aro.org>,
Leo Yan <leo.yan@...aro.org>
Cc: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Andrew Kilroy <andrew.kilroy@....com>,
Shuai Xue <xueshuai@...ux.alibaba.com>,
Zhuo Song <zhuo.song@...ux.alibaba.com>,
Jing Zhang <renyu.zj@...ux.alibaba.com>
Subject: [RFC PATCH v2 5/6] perf vendor events arm64: Add PE utilization metrics for neoverse-n2
Add PE utilization related metrics.
Signed-off-by: Jing Zhang <renyu.zj@...ux.alibaba.com>
---
.../arch/arm64/arm/neoverse-n2/metrics.json | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json
index e960a66..3c14971 100644
--- a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json
+++ b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json
@@ -152,5 +152,33 @@
"BriefDescription": "The rate of branches mis-predited to the overall branches",
"MetricGroup": "Branch",
"MetricName": "branch_miss_pred_rate"
+ },
+ {
+ "MetricExpr": "instructions / CPU_CYCLES",
+ "PublicDescription": "The average number of instructions executed for each cycle.",
+ "BriefDescription": "Instructions per cycle",
+ "MetricGroup": "PEutilization",
+ "MetricName": "ipc"
+ },
+ {
+ "MetricExpr": "OP_RETIRED / OP_SPEC",
+ "PublicDescription": "Fraction of operations retired",
+ "BriefDescription": "Fraction of operations retired",
+ "MetricGroup": "PEutilization",
+ "MetricName": "retired_rate"
+ },
+ {
+ "MetricExpr": "1 - OP_RETIRED / OP_SPEC",
+ "PublicDescription": "Fraction of operations wasted",
+ "BriefDescription": "Fraction of operations wasted",
+ "MetricGroup": "PEutilization",
+ "MetricName": "wasted_rate"
+ },
+ {
+ "MetricExpr": "(1 - STALL_SLOT / (CPU_CYCLES * 5)) * OP_RETIRED / OP_SPEC",
+ "PublicDescription": "Utilization of CPU",
+ "BriefDescription": "Utilization of CPU",
+ "MetricGroup": "PEutilization",
+ "MetricName": "cpu_utilization"
}
]
\ No newline at end of file
--
1.8.3.1
Powered by blists - more mailing lists