[PATCH 5/5] arm/perfevents: implement perf event support for ARMv6
Will Deacon
will.deacon at arm.com
Wed Jan 27 12:26:27 EST 2010
Hi Jean,
* Jean Pihet wrote:
> Here is the latest version of the patch, after review on the ML.
> Adds the Performance Events support for ARMv7 processor, using
> the PMNC unit in HW.
I tested this on a dual-core Cortex-A9 [Realview PBX board].
One thing I noticed was that, even if you don't add the PMU IRQs to
kernel/pmu.c, perf will still report event counts [I guess this is
due to sampling on context switch etc]. However, if the IRQs are
defined, but for some reason we fail to request them, then the
armpmu_reserve_hardware function will fail. Actually, the return
value appears to be uninitialised if you don't have any IRQs defined.
Anyway, apart from that, it appeared to work fine.
Tested-by: Will Deacon <will.deacon at arm.com>
Will
More information about the linux-arm-kernel
mailing list