Skip to content

Commit 2697b79

Browse files
Xu Yangnamhyung
authored andcommitted
perf vendor events arm64:: Add i.MX93 DDR Performance Monitor metrics
Add JSON metrics for i.MX93 DDR Performance Monitor. Reviewed-by: Frank Li <[email protected]> Signed-off-by: Xu Yang <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent 1059fb5 commit 2697b79

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"BriefDescription": "ddr cycles event",
4+
"EventCode": "0x00",
5+
"EventName": "imx93_ddr.cycles",
6+
"Unit": "imx9_ddr",
7+
"Compat": "imx93"
8+
}
9+
]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
{
3+
"BriefDescription": "bandwidth usage for lpddr4x evk board",
4+
"MetricName": "imx93_bandwidth_usage.lpddr4x",
5+
"MetricExpr": "(((( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8 ) + (( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32 )) / duration_time) / (3733 * 1000000 * 2)",
6+
"ScaleUnit": "1e2%",
7+
"Unit": "imx9_ddr",
8+
"Compat": "imx93"
9+
},
10+
{
11+
"BriefDescription": "bytes all masters read from ddr",
12+
"MetricName": "imx93_ddr_read.all",
13+
"MetricExpr": "( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8",
14+
"ScaleUnit": "9.765625e-4KB",
15+
"Unit": "imx9_ddr",
16+
"Compat": "imx93"
17+
},
18+
{
19+
"BriefDescription": "bytes all masters write to ddr",
20+
"MetricName": "imx93_ddr_write.all",
21+
"MetricExpr": "( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32",
22+
"ScaleUnit": "9.765625e-4KB",
23+
"Unit": "imx9_ddr",
24+
"Compat": "imx93"
25+
}
26+
]

0 commit comments

Comments
 (0)