Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Xu Yang and committed by
Namhyung Kim
235f0da3 b77f8c36

+8
+8
tools/perf/pmu-events/arch/arm64/freescale/imx95/sys/metrics.json
··· 8 8 "Compat": "imx95" 9 9 }, 10 10 { 11 + "BriefDescription": "bandwidth usage for lpddr4x evk board", 12 + "MetricName": "imx95_bandwidth_usage.lpddr4x", 13 + "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)", 14 + "ScaleUnit": "1e2%", 15 + "Unit": "imx9_ddr", 16 + "Compat": "imx95" 17 + }, 18 + { 11 19 "BriefDescription": "bytes of all masters read from ddr", 12 20 "MetricName": "imx95_ddr_read.all", 13 21 "MetricExpr": "( imx9_ddr0@eddrtq_pm_rd_beat_filt0\\,axi_mask\\=0x000\\,axi_id\\=0x000@ ) * 32",