ARM: perf: add support for the Cortex-A7 PMU
Subsystems (3)
PATCH 1/1 ARM: perf: add support for the Cortex-A7 PMU
Cortex-A7 implements an ARMv7-compatible PMU compliant with the PMUv2 architecture specification.
This patch adds support for the PMU to the ARM perf backend.
Signed-off-by Will Deacon <[email protected]>
--- arch/arm/include/asm/perf_event.h | 1 + arch/arm/kernel/perf_event.c | 3 + arch/arm/kernel/perf_event_v7.c | 145 +++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+), 0 deletions(-)
arch/arm/include/asm/perf_event.h +1 -0
@@ -26,6 +26,7 @@ enum arm_perf_pmu_ids {ARM_PERF_PMU_ID_CA9 ,ARM_PERF_PMU_ID_CA5 ,ARM_PERF_PMU_ID_CA15 , +ARM_PERF_PMU_ID_CA7 , ARM_NUM_PMU_IDS, };
arch/arm/kernel/perf_event.c +3 -0
@@ -712,6 +712,9 @@ init_hw_perf_events(void)case 0xC0F0 :/* Cortex-A15 */ cpu_pmu =armv7_a15_pmu_init ();break ; +case 0xC070 :/* Cortex-A7 */ + cpu_pmu =armv7_a7_pmu_init (); +break ; }/* Intel CPUs [xscale]. */ }else if (0x69 == implementor) {
arch/arm/kernel/perf_event_v7.c +145 -0
167 lines not on this page · raw message
Signature · 1 line
1.7.4.1