drivers/perf: imx_ddr: Add DDR performance counter support to perf
authorFrank Li <frank.li@nxp.com>
Wed, 1 May 2019 18:43:29 +0000 (18:43 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 13 Jun 2019 10:07:57 +0000 (11:07 +0100)
commit9a66d36cc7ace8062bd703d1edfb99437a2ddf2b
treee3321a1edc901db79bff1ed81fbeb0ddcfbe89e9
parent2b37c1c3e7bbfaaa3910ee66f44f5a4138229884
drivers/perf: imx_ddr: Add DDR performance counter support to perf

Add DDR performance monitor support for iMX8QXP. The PMU consists of 3
programmable event counters and a single dedicated cycle counter.

Example usage:

 $ perf stat -a -e \
   imx8_ddr0/read-cycles/,imx8_ddr0/write-cycles/,imx8_ddr0/precharge/ ls

- or -

 $ perf stat -a -e \
   imx8_ddr0/cycles/,imx8_ddr0/read-access/,imx8_ddr0/write-access/ ls

Other events are supported, and advertised via perf list.

Reviewed-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
[will: rewrote commit message/kconfig and used #defines for dev/cpuhp names]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/fsl_imx8_ddr_perf.c [new file with mode: 0644]