Skip to content

Commit d7ac4e2

Browse files
Jean PIHETRussell King
authored andcommitted
[ARM] 5195/1: ARMv7 Oprofile support
Add Oprofile kernel support for ARMv7. Tested on OMAP3430 and OMAP3530 chipsets (Cortex-A8). Signed-off-by: Jean Pihet <jpihet@mvista.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 46097c7 commit d7ac4e2

File tree

7 files changed

+527
-0
lines changed

7 files changed

+527
-0
lines changed

arch/arm/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ config OPROFILE_MPCORE
178178
config OPROFILE_ARM11_CORE
179179
bool
180180

181+
config OPROFILE_ARMV7
182+
def_bool y
183+
depends on CPU_V7 && !SMP
184+
bool
185+
181186
endif
182187

183188
config VECTORS_BASE

arch/arm/oprofile/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ oprofile-$(CONFIG_CPU_XSCALE) += op_model_xscale.o
1111
oprofile-$(CONFIG_OPROFILE_ARM11_CORE) += op_model_arm11_core.o
1212
oprofile-$(CONFIG_OPROFILE_ARMV6) += op_model_v6.o
1313
oprofile-$(CONFIG_OPROFILE_MPCORE) += op_model_mpcore.o
14+
oprofile-$(CONFIG_OPROFILE_ARMV7) += op_model_v7.o

arch/arm/oprofile/common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
145145
spec = &op_mpcore_spec;
146146
#endif
147147

148+
#ifdef CONFIG_OPROFILE_ARMV7
149+
spec = &op_armv7_spec;
150+
#endif
151+
148152
if (spec) {
149153
ret = spec->init();
150154
if (ret < 0)

arch/arm/oprofile/op_arm_model.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ extern struct op_arm_model_spec op_xscale_spec;
2626

2727
extern struct op_arm_model_spec op_armv6_spec;
2828
extern struct op_arm_model_spec op_mpcore_spec;
29+
extern struct op_arm_model_spec op_armv7_spec;
2930

3031
extern void arm_backtrace(struct pt_regs * const regs, unsigned int depth);
3132

0 commit comments

Comments
 (0)