restore ARMv6 OProfile support
Quoted 5 lines · * Adrian Bunk ([email protected]) wrote:
This patch restores the ARMv6 OProfile support that was killed by commit
09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.Signed-off-by Adrian Bunk <[email protected]>
Yup, it must be put back, but I doubt stuffing it in kernel/Kconfig.instrumentation is the best way to proceed, especially since it will break the "instrumentation menu removal" patches currently in -mm _and_ because this is arm-specific.
Why don't we simply put it in arch/arm/Kconfig ?
Quoted 28 lines
---
kernel/Kconfig.instrumentation | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
7fc221ef169610b5eac98e2ddd641811c0d53e4akernel/Kconfig.instrumentation +15
-0@@ -29,2 +29,17 @@ config OPROFILE +config OPROFILE_ARMV6 + bool + depends on OPROFILE && ARM && CPU_V6 && !SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_MPCORE + bool + depends on OPROFILE && ARM && CPU_V6 && SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_ARM11_CORE + bool + config KPROBES
Signature · 3 lines
Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
PATCH 1/1 restore ARMv6 OProfile support
This patch restores the ARMv6 OProfile support that was killed by commit 09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.
---
kernel/Kconfig.instrumentation | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
7fc221ef169610b5eac98e2ddd641811c0d53e4a
kernel/Kconfig.instrumentation +15 -0
@@ -29,2 +29,17 @@ config OPROFILE +config OPROFILE_ARMV6 + bool + depends on OPROFILE && ARM && CPU_V6 && !SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_MPCORE + bool + depends on OPROFILE && ARM && CPU_V6 && SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_ARM11_CORE + bool + config KPROBES
Quoted 4 lines · Adrian Bunk
This patch restores the ARMv6 OProfile support that was killed by commit
09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.Signed-off-by Adrian Bunk <[email protected]>
Given where we are in the release cycle, I think this "cleanup" patch should be reverted. Once the issues with it are resolved (why was it never even CC'd to the arch maintainers for review?) then it can go into mainline.
Note that it also looks like (from the commitdiff) that the above mentioned commit also removes:
CONFIG_HARDWARE_PM (blackfin)CONFIG_OPROFILE_CELL (powerpc)
So they're probably subtly broken as well.
Linus, what do you think? Should 09cadedbdc01f1a4bea1f427d4fb4642eaa19da9 be reverted?
Quoted 29 lines
---
kernel/Kconfig.instrumentation | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
7fc221ef169610b5eac98e2ddd641811c0d53e4akernel/Kconfig.instrumentation +15
-0@@ -29,2 +29,17 @@ config OPROFILE +config OPROFILE_ARMV6 + bool + depends on OPROFILE && ARM && CPU_V6 && !SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_MPCORE + bool + depends on OPROFILE && ARM && CPU_V6 && SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_ARM11_CORE + bool + config KPROBES
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of:
PATCH 1/1 Fix ARMv6 OProfile support
In reply to Adrian BunkFix ARMv6 OProfile support
This patch restores the ARMv6 OProfile support that was killed by commit 09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.
It puts the config options in arch/arm/Kconfig.
--- arch/arm/Kconfig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm/Kconfig +19 -0
@@ -130,6 +130,25 @@ config FIQ config ARCH_MTD_XIP bool +if OPROFILE + +config OPROFILE_ARMV6 + bool + depends on CPU_V6 && !SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_MPCORE + bool + depends on CPU_V6 && SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_ARM11_CORE + bool + +endif + config VECTORS_BASE hex default 0xffff0000 if MMU || CPU_HIGH_VECTOR
Signature · 3 lines
Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
Re: [2.6.24 patch] Fix ARMv6 OProfile support
Quoted 28 lines · On Sat, 29 Dec 2007 11:05:57 -0500 Mathieu Desnoyers wrote:
Fix ARMv6 OProfile support
This patch restores the ARMv6 OProfile support that was killed by commit
09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.It puts the config options in
arch/arm/Kconfig.Signed-off-by Mathieu Desnoyers <[email protected]>CC Adrian Bunk <[email protected]>CC Randy Dunlap <[email protected]>--- arch/arm/Kconfig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)Index: linux-2.6-lttng/arch/arm/Kconfig
===================================================================arch/arm/Kconfig +3
-0@@ -130,6 +130,25 @@ config FIQ config ARCH_MTD_XIP bool +if OPROFILE + +config OPROFILE_ARMV6
arch/arm/Kconfig config FIQ · line 145
Quoted 10 lines
arch/arm/Kconfig +10
-0+ bool + depends on CPU_V6 && !SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_MPCORE + bool + depends on CPU_V6 && SMP + default y + select OPROFILE_ARM11_CORE
Prefer to use "def_bool y" for the 2 config symbols above, as you did in the Cell patch.
arch/arm/Kconfig config FIQ · line 154
Quoted 8 lines
arch/arm/Kconfig +5
-0+config OPROFILE_ARM11_CORE + bool + +endif + config VECTORS_BASE hex default 0xffff0000 if MMU || CPU_HIGH_VECTOR
---
~Randy
desserts: http://www.xenotime.net/linux/recipes/
Re: [2.6.24 patch] Fix ARMv6 OProfile support
This patch restores the ARMv6 OProfile support that was killed by commit 09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.
It puts the config options in arch/arm/Kconfig.
Changelog :
Use def_bool.
--- arch/arm/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm/Kconfig +17 -0
@@ -130,6 +130,23 @@ config FIQ config ARCH_MTD_XIP bool +if OPROFILE + +config OPROFILE_ARMV6 + def_bool y + depends on CPU_V6 && !SMP + select OPROFILE_ARM11_CORE + +config OPROFILE_MPCORE + def_bool y + depends on CPU_V6 && SMP + select OPROFILE_ARM11_CORE + +config OPROFILE_ARM11_CORE + bool + +endif + config VECTORS_BASE hex default 0xffff0000 if MMU || CPU_HIGH_VECTOR
Signature · 3 lines
Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
Re: [2.6.24 patch] Fix ARMv6 OProfile support
In reply to Mathieu DesnoyersQuoted 7 lines · * Mathieu Desnoyers ([email protected]) wrote:
Fix ARMv6 OProfile support
This patch restores the ARMv6 OProfile support that was killed by commit
09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.It puts the config options in
arch/arm/Kconfig.
This patch header should also include :
Problem identified by Adrian Bunk. Patch inspired by the original fix proposed by him.
Thanks,
Mathieu
Quoted 51 lines
Signed-off-by Mathieu Desnoyers <[email protected]>CC Adrian Bunk <[email protected]>CC Randy Dunlap <[email protected]>--- arch/arm/Kconfig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)Index: linux-2.6-lttng/arch/arm/Kconfig
===================================================================arch/arm/Kconfig +19
-0@@ -130,6 +130,25 @@ config FIQ config ARCH_MTD_XIP bool +if OPROFILE + +config OPROFILE_ARMV6 + bool + depends on CPU_V6 && !SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_MPCORE + bool + depends on CPU_V6 && SMP + default y + select OPROFILE_ARM11_CORE + +config OPROFILE_ARM11_CORE + bool + +endif + config VECTORS_BASE hex default 0xffff0000 if MMU || CPU_HIGH_VECTORSignature · 9 lines
-- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Signature · 3 lines
Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68