perfevents: Add support for Scorpion performance monitors
PATCH 2/3 perfevents: Add support for Scorpion performance monitors
This commit adds support for performance monitors provided by Qualcomm Scorpion and ScorpionMP processor to perfevents.
Signed-off-by Sheetal Sahasrabudhe <[email protected]>
--- arch/arm/include/asm/perf_event.h | 2 + arch/arm/kernel/perf_event.c | 11 + arch/arm/kernel/perf_event_qc.c | 677 +++++++++++++++++++++++++++++++++++++ 3 files changed, 690 insertions(+), 0 deletions(-) create mode 100644 arch/arm/kernel/perf_event_qc.c
arch/arm/include/asm/perf_event.h +2 -0
@@ -24,6 +24,8 @@ enum arm_perf_pmu_ids {ARM_PERF_PMU_ID_V6MP ,ARM_PERF_PMU_ID_CA8 ,ARM_PERF_PMU_ID_CA9 , +ARM_PERF_PMU_ID_SCORPION , +ARM_PERF_PMU_ID_SCORPIONMP , ARM_NUM_PMU_IDS, };
arch/arm/kernel/perf_event.c +11 -0
@@ -608,6 +608,7 @@ static struct pmu pmu = {#include "perf_event_xscale.c" #include "perf_event_v6.c" #include "perf_event_v7.c" +#include "perf_event_qc.c" static int __init init_hw_perf_events (void )
@@ -645,6 +646,16 @@ init_hw_perf_events(void) armpmu =xscale2pmu_init ();break ; } +/* Qualcomm CPUs */ + }else if (0x51 == implementor) { +switch (part_number) { +case 0x00F0 :/* 8x50 & 7x30*/ + armpmu =armv7_scorpion_pmu_init (); +break ; +case 0x02D0 :/* 8x60 */ + armpmu =armv7_scorpionmp_pmu_init (); +break ; + } }if (armpmu) {
arch/arm/kernel/perf_event_qc.c new file +677 -0
677 lines not on this page · raw message
Signature · 5 lines
1.7.4.1 -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum
Hi Sheetal,
Quoted 10 lines · Sheetal Sahasrabudhe
This commit adds support for performance monitors provided by Qualcomm Scorpion and ScorpionMP processor to perfevents.
Signed-off-by Sheetal Sahasrabudhe <[email protected]>--- arch/arm/include/asm/perf_event.h | 2 + arch/arm/kernel/perf_event.c | 11 + arch/arm/kernel/perf_event_qc.c | 677 +++++++++++++++++++++++++++++++++++++ 3 files changed, 690 insertions(+), 0 deletions(-) create mode 100644 arch/arm/kernel/perf_event_qc.c
I reviewed a few iterations of this patch off-list so you can add my review tag (after fixing the comments and filename as pointed out by Bryan):
Reviewed-by Will Deacon <[email protected]>
Will