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

perf vendor events arm64: Add JSON metrics for Yitian 710 DDR

Add JSON metrics for T-HEAD Yitian 710 SoC DDR.

Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Shuai Xue <xueshuai@linux.alibaba.com>
Cc: Will Deacon <will@kernel.org>
Cc: Zhuo Song <zhuo.song@linux.alibaba.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-doc@vger.kernel.org
Link: https://lore.kernel.org/r/1690528175-2499-3-git-send-email-renyu.zj@linux.alibaba.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jing Zhang and committed by
Arnaldo Carvalho de Melo
3e65bd13 24069d81

+20
+20
tools/perf/pmu-events/arch/arm64/freescale/yitian710/sys/metrics.json
··· 1 + [ 2 + { 3 + "MetricName": "ddr_read_bandwidth.all", 4 + "BriefDescription": "The ddr read bandwidth(MB/s).", 5 + "MetricGroup": "ali_drw", 6 + "MetricExpr": "hif_rd * 64 / 1e6 / duration_time", 7 + "ScaleUnit": "1MB/s", 8 + "Unit": "ali_drw", 9 + "Compat": "ali_drw_pmu" 10 + }, 11 + { 12 + "MetricName": "ddr_write_bandwidth.all", 13 + "BriefDescription": "The ddr write bandwidth(MB/s).", 14 + "MetricGroup": "ali_drw", 15 + "MetricExpr": "(hif_wr + hif_rmw) * 64 / 1e6 / duration_time", 16 + "ScaleUnit": "1MB/s", 17 + "Unit": "ali_drw", 18 + "Compat": "ali_drw_pmu" 19 + } 20 + ]