From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: mingo@elte.hu, arjan@infradead.org, linux-kernel@vger.kernel.org,
schwidefsky@de.ibm.com
Subject: Re: [patch 8/8] lock validator: add s390 to supported options
Date: Fri, 23 Jun 2006 15:05:06 +0200 [thread overview]
Message-ID: <20060623130506.GD9446@osiris.boeblingen.de.ibm.com> (raw)
In-Reply-To: <20060619150547.0b6213b1.akpm@osdl.org>
On Mon, Jun 19, 2006 at 03:05:47PM -0700, Andrew Morton wrote:
> Heiko Carstens <heiko.carstens@de.ibm.com> wrote:
> >
> > config DEBUG_SPINLOCK_ALLOC
> > bool "Spinlock debugging: detect incorrect freeing of live spinlocks"
> > - depends on DEBUG_SPINLOCK && X86
> > + depends on DEBUG_SPINLOCK && (X86 || S390)
>
> Can we please stomp this out before it starts to look like
> CONFIG_FRAME_POINTER?
>
> We should define CONFIG_ARCH_SUPPORTS_LOCKDEP down in
> arch/[i386|x86_64|s390]/Kconfig and use that in lib/Kconfig.debug.
How about this:
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Add LOCKDEP_SUPPORT config option per architecture.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
arch/i386/Kconfig.debug | 4 ++++
arch/s390/Kconfig.debug | 4 ++++
arch/x86_64/Kconfig.debug | 4 ++++
lib/Kconfig.debug | 10 +++++-----
4 files changed, 17 insertions(+), 5 deletions(-)
Index: linux-2.6.17-mm1/arch/i386/Kconfig.debug
===================================================================
--- linux-2.6.17-mm1.orig/arch/i386/Kconfig.debug
+++ linux-2.6.17-mm1/arch/i386/Kconfig.debug
@@ -4,6 +4,10 @@ config TRACE_IRQFLAGS_SUPPORT
bool
default y
+config LOCKDEP_SUPPORT
+ bool
+ default y
+
source "lib/Kconfig.debug"
config EARLY_PRINTK
Index: linux-2.6.17-mm1/arch/s390/Kconfig.debug
===================================================================
--- linux-2.6.17-mm1.orig/arch/s390/Kconfig.debug
+++ linux-2.6.17-mm1/arch/s390/Kconfig.debug
@@ -4,6 +4,10 @@ config TRACE_IRQFLAGS_SUPPORT
bool
default y
+config LOCKDEP_SUPPORT
+ bool
+ default y
+
source "lib/Kconfig.debug"
endmenu
Index: linux-2.6.17-mm1/arch/x86_64/Kconfig.debug
===================================================================
--- linux-2.6.17-mm1.orig/arch/x86_64/Kconfig.debug
+++ linux-2.6.17-mm1/arch/x86_64/Kconfig.debug
@@ -4,6 +4,10 @@ config TRACE_IRQFLAGS_SUPPORT
bool
default y
+config LOCKDEP_SUPPORT
+ bool
+ default y
+
source "lib/Kconfig.debug"
config DEBUG_RODATA
Index: linux-2.6.17-mm1/lib/Kconfig.debug
===================================================================
--- linux-2.6.17-mm1.orig/lib/Kconfig.debug
+++ linux-2.6.17-mm1/lib/Kconfig.debug
@@ -159,7 +159,7 @@ config DEBUG_SPINLOCK
config DEBUG_SPINLOCK_ALLOC
bool "Spinlock debugging: detect incorrect freeing of live spinlocks"
- depends on DEBUG_SPINLOCK && (X86 || S390)
+ depends on LOCKDEP_SUPPORT && DEBUG_SPINLOCK
select LOCKDEP
help
This feature will check whether any held spinlock is incorrectly
@@ -208,7 +208,7 @@ config PROVE_SPIN_LOCKING
config DEBUG_RWLOCK_ALLOC
bool "rw-lock debugging: detect incorrect freeing of live rwlocks"
- depends on DEBUG_SPINLOCK && (X86 || S390)
+ depends on LOCKDEP_SUPPORT && DEBUG_SPINLOCK
select LOCKDEP
help
This feature will check whether any held rwlock is incorrectly
@@ -265,7 +265,7 @@ config DEBUG_MUTEXES
config DEBUG_MUTEX_ALLOC
bool "Mutex debugging: detect incorrect freeing of live mutexes"
- depends on DEBUG_MUTEXES && (X86 || S390)
+ depends on LOCKDEP_SUPPORT && DEBUG_MUTEXES
select LOCKDEP
help
This feature will check whether any held mutex is incorrectly
@@ -321,7 +321,7 @@ config DEBUG_RWSEMS
config DEBUG_RWSEM_ALLOC
bool "rwsem debugging: detect incorrect freeing of live rwsems"
- depends on DEBUG_RWSEMS && (X86 || S390)
+ depends on LOCKDEP_SUPPORT && DEBUG_RWSEMS
select LOCKDEP
help
This feature will check whether any held rwsem is incorrectly
@@ -373,7 +373,7 @@ config LOCKDEP
select FRAME_POINTER
select KALLSYMS
select KALLSYMS_ALL
- depends on X86 || S390
+ depends on LOCKDEP_SUPPORT
config DEBUG_NON_NESTED_UNLOCKS
bool "Detect non-nested unlocks"
next prev parent reply other threads:[~2006-06-23 13:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 14:25 Heiko Carstens
2006-06-19 22:05 ` Andrew Morton
2006-06-19 22:18 ` Wish for 2006 to Alan Cox and Jeff Garzik: A functional Driver for PDC202XX Erik Ohrnberger
2006-06-20 8:20 ` Alan Cox
2006-06-20 12:52 ` Erik Ohrnberger
2006-06-21 1:19 ` Erik Ohrnberger
2006-06-21 10:51 ` Alan Cox
2006-06-21 13:09 ` Erik Ohrnberger
2006-06-21 13:34 ` Alan Cox
2006-06-21 13:34 ` Mike Snitzer
2006-06-21 14:07 ` Alan Cox
2006-06-21 15:20 ` Mike Snitzer
2006-06-21 16:10 ` Alan Cox
2006-06-21 17:47 ` Mike Snitzer
2006-06-22 22:14 ` Wish for 2006 to Alan Cox and Jeff Garzik: A functional Driverfor PDC202XX Erik Ohrnberger
2006-06-20 7:07 ` [patch 8/8] lock validator: add s390 to supported options Arjan van de Ven
2006-06-20 7:28 ` Andrew Morton
2006-06-23 13:05 ` Heiko Carstens [this message]
2006-06-23 13:37 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060623130506.GD9446@osiris.boeblingen.de.ibm.com \
--to=heiko.carstens@de.ibm.com \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=schwidefsky@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome