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

perf docs: Update metric usage for Alibaba's T-Head PMU driver (arm64)

Alibaba's T-Head ali_drw PMU supports DDR bandwidth metrics. Update
its usage in the documentation.

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-4-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
f849ce6b 3e65bd13

+5
+5
Documentation/admin-guide/perf/alibaba_pmu.rst
··· 88 88 -e ali_drw_27080/hif_rmw/ \ 89 89 -e ali_drw_27080/cycle/ -- sleep 10 90 90 91 + Example usage of counting all memory read/write bandwidth by metric:: 92 + 93 + perf stat -M ddr_read_bandwidth.all -- sleep 10 94 + perf stat -M ddr_write_bandwidth.all -- sleep 10 95 + 91 96 The average DRAM bandwidth can be calculated as follows: 92 97 93 98 - Read Bandwidth = perf_hif_rd * DDRC_WIDTH * DDRC_Freq / DDRC_Cycle