Add JSON metrics for i.MX8 DDR perf.
Below command used for metric:
--------------------------------------------------------------
root@imx8qmmek:~# perf list metricgroup
List of pre-defined events (to be used in -e):
Metric Groups:
i.MX8MM_DDR_MON
i.MX8MP_DDR_MON
i.MX8QM_DDR_MON
--------------------------------------------------------------
root@imx8qmmek:~# perf list metric
List of pre-defined events (to be used in -e):
Metrics:
imx8mm-ddr0-2d-r
[imx8mm: bursts of gpu 2d read from ddr0]
imx8mm-ddr0-2d-w
[imx8mm: bursts of gpu 2d write to ddr0]
imx8mm-ddr0-3d-r
[imx8mm: bursts of gpu 3d read from ddr0]
imx8mm-ddr0-3d-w
[imx8mm: bursts of gpu 3d write to ddr0]
imx8mm-ddr0-a53-r
[imx8mm: bursts of a53 core read from ddr0]
imx8mm-ddr0-a53-w
[imx8mm: bursts of a53 core write to ddr0]
imx8mm-ddr0-all-r
[imx8mm: bytes of all masters read from ddr0]
imx8mm-ddr0-all-w
[imx8mm: bytes of all masters write to ddr0]
------------------------------------------------------------
root@imx8qmmek:~# perf stat -a -M imx8mm-ddr0-2d-r sleep 1
Performance counter stats for 'system wide':
0 imx8_ddr0/axid-read,axi_mask=0x0001,axi_id=0x0004/ # 0.0 imx8mm-ddr0-2d-r
1.012773375 seconds time elapsed
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>