diff mbox series

perf vendor events arm64: imx95: add imx95_bandwidth_usage.lpddr4x metric

Message ID 20240924030812.3211029-1-xu.yang_2@nxp.com (mailing list archive)
State In Next, archived
Headers show
Series perf vendor events arm64: imx95: add imx95_bandwidth_usage.lpddr4x metric | expand

Commit Message

Xu Yang Sept. 24, 2024, 3:08 a.m. UTC
Except lpddr5, i.MX95 also support lpddr4x. This will add a metric for
lpddr4x.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
---
 .../arch/arm64/freescale/imx95/sys/metrics.json           | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Namhyung Kim Sept. 26, 2024, 5:28 p.m. UTC | #1
On Tue, 24 Sep 2024 11:08:12 +0800, Xu Yang wrote:

> Except lpddr5, i.MX95 also support lpddr4x. This will add a metric for
> lpddr4x.
> 
> 

Applied to perf-tools-next, thanks!

Best regards,
Namhyung
diff mbox series

Patch

diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx95/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx95/sys/metrics.json
index 126ce980f6f2..45a0d51dfb63 100644
--- a/tools/perf/pmu-events/arch/arm64/freescale/imx95/sys/metrics.json
+++ b/tools/perf/pmu-events/arch/arm64/freescale/imx95/sys/metrics.json
@@ -7,6 +7,14 @@ 
 		"Unit": "imx9_ddr",
 		"Compat": "imx95"
 	},
+	{
+		"BriefDescription": "bandwidth usage for lpddr4x evk board",
+		"MetricName": "imx95_bandwidth_usage.lpddr4x",
+		"MetricExpr": "(( imx9_ddr0@eddrtq_pm_rd_beat_filt0\\,axi_mask\\=0x000\\,axi_id\\=0x000@ + imx9_ddr0@eddrtq_pm_wr_beat_filt\\,axi_mask\\=0x000\\,axi_id\\=0x000@ ) * 32 / duration_time) / (4000 * 1000000 * 4)",
+		"ScaleUnit": "1e2%",
+		"Unit": "imx9_ddr",
+		"Compat": "imx95"
+	},
 	{
 		"BriefDescription": "bytes of all masters read from ddr",
 		"MetricName": "imx95_ddr_read.all",