Re: Locking API testsuite: Failures

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Teoh
Date: Tuesday, August 26, 2008 - 11:32 pm

Thanks for the reply.

On Wed, Aug 27, 2008 at 9:58 AM, Peter Zijlstra <peterz@infradead.org> wrote:

Several questions:

1.   I noticed there is a Kconfig.debug with this entry:

config DEBUG_LOCKING_API_SELFTESTS
        bool "Locking API boot-time self-tests"
        depends on DEBUG_KERNEL
        help
          Say Y here if you want the kernel to run a short self-test during
          bootup. The self-test checks whether common types of locking bugs
          are detected by debugging mechanisms or not. (if you disable
          lock debugging then those bugs wont be detected of course.)
          The following locking APIs are covered: spinlocks, rwlocks,
          mutexes and rwsems.

How do I use this Kconfig.debug, just overwriting the standard
lib/Kconfig?   I overwrote it and got the following errors:

scripts/kconfig/conf -o arch/x86/Kconfig
file kernel/trace/Kconfig already scanned?
make[1]: *** [oldconfig] Error 1
make: *** [oldconfig] Error 2

2.   So does it make sense to  compile with
CONFIG_DEBUG_LOCKING_API_SELFTESTS without CONFIG_LOCKDEP?
Should the lib/Kconfig indicate such a dependency?

3.   My current .config (which gave rise to the failure errors) has
CONFIG_LOCKDEP_SUPPORT=y, and CONFIG_DEBUG_LOCKING_API_SELFTESTS=y.
Question is what is the different between LOCKDEP_SUPPORT and LOCKDEP
alone?

Thanks.




-- 
Regards,
Peter Teoh
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Locking API testsuite: Failures, Peter Teoh, (Tue Aug 26, 5:27 pm)
Re: Locking API testsuite: Failures, Peter Zijlstra, (Tue Aug 26, 6:58 pm)
Re: Locking API testsuite: Failures, Peter Teoh, (Tue Aug 26, 11:32 pm)
Re: Locking API testsuite: Failures, Ingo Molnar, (Tue Aug 26, 11:45 pm)