perf vendor events arm64: imx95: add imx95_bandwidth_usage.lpddr4x metric
authorXu Yang <xu.yang_2@nxp.com>
Tue, 24 Sep 2024 03:08:12 +0000 (11:08 +0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 25 Sep 2024 23:09:22 +0000 (16:09 -0700)
Except lpddr5, i.MX95 also support lpddr4x. This will add a metric for
lpddr4x.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Cc: shawnguo@kernel.org
Cc: will@kernel.org
Cc: james.clark@linaro.org
Cc: mike.leach@linaro.org
Cc: imx@lists.linux.dev
Cc: john.g.garry@oracle.com
Cc: kernel@pengutronix.de
Cc: s.hauer@pengutronix.de
Link: https://lore.kernel.org/r/20240924030812.3211029-1-xu.yang_2@nxp.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/pmu-events/arch/arm64/freescale/imx95/sys/metrics.json

index 126ce980f6f251e2f023d8a71d9e7813d95d1373..45a0d51dfb6398d3aa819311711d30ecbd2c61f3 100644 (file)
@@ -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",