Re: [PATCH v8 16/26] PM / devfreq: rockchip-dfi: Add perf support
From: Heiko Stübner <heiko@sntech.de>
Date: 2023-10-18 20:03:15
Also in:
linux-devicetree, linux-pm, linux-rockchip, lkml
From: Heiko Stübner <heiko@sntech.de>
Date: 2023-10-18 20:03:15
Also in:
linux-devicetree, linux-pm, linux-rockchip, lkml
Am Mittwoch, 18. Oktober 2023, 08:17:04 CEST schrieb Sascha Hauer:
The DFI is a unit which is suitable for measuring DDR utilization, but
so far it could only be used as an event driver for the DDR frequency
scaling driver. This adds perf support to the DFI driver.
Usage with the 'perf' tool can look like:
perf stat -a -e rockchip_ddr/cycles/,\
rockchip_ddr/read-bytes/,\
rockchip_ddr/write-bytes/,\
rockchip_ddr/bytes/ sleep 1
Performance counter stats for 'system wide':
1582524826 rockchip_ddr/cycles/
1802.25 MB rockchip_ddr/read-bytes/
1793.72 MB rockchip_ddr/write-bytes/
3595.90 MB rockchip_ddr/bytes/
1.014369709 seconds time elapsed
perf support has been tested on a RK3568 and a RK3399, the latter with
dual channel DDR.
Reviewed-by: Sebastian Reichel <redacted>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>Acked-by: Heiko Stuebner <heiko@sntech.de> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel