URL
https://opencores.org/ocsvn/test_project/test_project/trunk
Subversion Repositories test_project
[/] [test_project/] [trunk/] [linux_sd_driver/] [lib/] [Kconfig.debug] - Rev 62
Compare with Previous | Blame | View Log
config PRINTK_TIMEbool "Show timing information on printks"depends on PRINTKhelpSelecting this option causes timing information to beincluded in printk output. This allows you to measurethe interval between kernel operations, including bootupoperations. This is useful for identifying long delaysin kernel startup.config ENABLE_WARN_DEPRECATEDbool "Enable __deprecated logic"default yhelpEnable the __deprecated logic in the kernel build.Disable this to suppress the "warning: 'foo' is deprecated(declared at kernel/power/somefile.c:1234)" messages.config ENABLE_MUST_CHECKbool "Enable __must_check logic"default yhelpEnable the __must_check logic in the kernel build. Disable this tosuppress the "warning: ignoring return value of 'foo', declared withattribute warn_unused_result" messages.config MAGIC_SYSRQbool "Magic SysRq key"depends on !UMLhelpIf you say Y here, you will have some control over the system evenif the system crashes for example during kernel debugging (e.g., youwill be able to flush the buffer cache to disk, reboot the systemimmediately or dump some status information). This is accomplishedby pressing various keys while holding SysRq (Alt+PrintScreen). Italso works on a serial console (on PC hardware at least), if yousend a BREAK and then within 5 seconds a command keypress. Thekeys are documented in <file:Documentation/sysrq.txt>. Don't say Yunless you really know what this hack does.config UNUSED_SYMBOLSbool "Enable unused/obsolete exported symbols"default y if X86helpUnused but exported symbols make the kernel needlessly bigger. Forthat reason most of these unused exports will soon be removed. Thisoption is provided temporarily to provide a transition period in casesome external kernel module needs one of these symbols anyway. If youencounter such a case in your module, consider if you are actuallyusing the right API. (rationale: since nobody in the kernel is usingthis in a module, there is a pretty good chance it's actually thewrong interface to use). If you really need the symbol, please send amail to the linux kernel mailing list mentioning the symbol and whyyou really need it, and what the merge plan to the mainline kernel foryour module is.config DEBUG_FSbool "Debug Filesystem"depends on SYSFShelpdebugfs is a virtual file system that kernel developers use to putdebugging files into. Enable this option to be able to read andwrite to these files.If unsure, say N.config HEADERS_CHECKbool "Run 'make headers_check' when building vmlinux"depends on !UMLhelpThis option will extract the user-visible kernel headers wheneverbuilding the kernel, and will run basic sanity checks on them toensure that exported files do not attempt to include files whichwere not exported, etc.If you're making modifications to header files which arerelevant for userspace, say 'Y', and check the headersexported to $(INSTALL_HDR_PATH) (usually 'usr/include' inyour build tree), to make sure they're suitable.config DEBUG_KERNELbool "Kernel debugging"helpSay Y here if you are developing drivers or trying to debug andidentify kernel problems.config DEBUG_SHIRQbool "Debug shared IRQ handlers"depends on DEBUG_KERNEL && GENERIC_HARDIRQShelpEnable this to generate a spurious interrupt as soon as a sharedinterrupt handler is registered, and just before one is deregistered.Drivers ought to be able to handle interrupts coming in at thosepoints; some don't and need to be caught.config DETECT_SOFTLOCKUPbool "Detect Soft Lockups"depends on DEBUG_KERNEL && !S390default yhelpSay Y here to enable the kernel to detect "soft lockups",which are bugs that cause the kernel to loop in kernelmode for more than 10 seconds, without giving other tasks achance to run.When a soft-lockup is detected, the kernel will print thecurrent stack trace (which you should report), but thesystem will stay locked up. This feature has negligibleoverhead.(Note that "hard lockups" are separate type of bugs thatcan be detected via the NMI-watchdog, on platforms thatsupport it.)config SCHED_DEBUGbool "Collect scheduler debugging info"depends on DEBUG_KERNEL && PROC_FSdefault yhelpIf you say Y here, the /proc/sched_debug file will be providedthat can help debug the scheduler. The runtime overhead of thisoption is minimal.config SCHEDSTATSbool "Collect scheduler statistics"depends on DEBUG_KERNEL && PROC_FShelpIf you say Y here, additional code will be inserted into thescheduler and related routines to collect statistics aboutscheduler behavior and provide them in /proc/schedstat. Thesestats may be useful for both tuning and debugging the schedulerIf you aren't debugging the scheduler or trying to tune a specificapplication, you can say N to avoid the very slight overheadthis adds.config TIMER_STATSbool "Collect kernel timers statistics"depends on DEBUG_KERNEL && PROC_FShelpIf you say Y here, additional code will be inserted into thetimer routines to collect statistics about kernel timers beingreprogrammed. The statistics can be read from /proc/timer_stats.The statistics collection is started by writing 1 to /proc/timer_stats,writing 0 stops it. This feature is useful to collect informationabout timer usage patterns in kernel and userspace. This featureis lightweight if enabled in the kernel config but not activated(it defaults to deactivated on bootup and will only be activatedif some application like powertop activates it explicitly).config DEBUG_SLABbool "Debug slab memory allocations"depends on DEBUG_KERNEL && SLABhelpSay Y here to have the kernel do limited verification on memoryallocation as well as poisoning memory on free to catch use of freedmemory. This can make kmalloc/kfree-intensive workloads much slower.config DEBUG_SLAB_LEAKbool "Memory leak debugging"depends on DEBUG_SLABconfig SLUB_DEBUG_ONbool "SLUB debugging on by default"depends on SLUB && SLUB_DEBUGdefault nhelpBoot with debugging on by default. SLUB boots by default withthe runtime debug capabilities switched off. Enabling this isequivalent to specifying the "slub_debug" parameter on boot.There is no support for more fine grained debug control likepossible with slub_debug=xxx. SLUB debugging may be switchedoff in a kernel built with CONFIG_SLUB_DEBUG_ON by specifying"slub_debug=-".config DEBUG_PREEMPTbool "Debug preemptible kernel"depends on DEBUG_KERNEL && PREEMPT && (TRACE_IRQFLAGS_SUPPORT || PPC64)default yhelpIf you say Y here then the kernel will use a debug variant of thecommonly used smp_processor_id() function and will print warningsif kernel code uses it in a preemption-unsafe way. Also, the kernelwill detect preemption count underflows.config DEBUG_RT_MUTEXESbool "RT Mutex debugging, deadlock detection"depends on DEBUG_KERNEL && RT_MUTEXEShelpThis allows rt mutex semantics violations and rt mutex relateddeadlocks (lockups) to be detected and reported automatically.config DEBUG_PI_LISTbooldefault ydepends on DEBUG_RT_MUTEXESconfig RT_MUTEX_TESTERbool "Built-in scriptable tester for rt-mutexes"depends on DEBUG_KERNEL && RT_MUTEXEShelpThis option enables a rt-mutex tester.config DEBUG_SPINLOCKbool "Spinlock and rw-lock debugging: basic checks"depends on DEBUG_KERNELhelpSay Y here and build SMP to catch missing spinlock initializationand certain other kinds of spinlock errors commonly made. This isbest used in conjunction with the NMI watchdog so that spinlockdeadlocks are also debuggable.config DEBUG_MUTEXESbool "Mutex debugging: basic checks"depends on DEBUG_KERNELhelpThis feature allows mutex semantics violations to be detected andreported.config DEBUG_SEMAPHOREbool "Semaphore debugging"depends on DEBUG_KERNELdepends on ALPHA || FRVdefault nhelpIf you say Y here then semaphore processing will issue lots ofverbose debugging messages. If you suspect a semaphore problem or akernel hacker asks for this option then say Y. Otherwise say N.config DEBUG_LOCK_ALLOCbool "Lock debugging: detect incorrect freeing of live locks"depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORTselect DEBUG_SPINLOCKselect DEBUG_MUTEXESselect LOCKDEPhelpThis feature will check whether any held lock (spinlock, rwlock,mutex or rwsem) is incorrectly freed by the kernel, via any of thememory-freeing routines (kfree(), kmem_cache_free(), free_pages(),vfree(), etc.), whether a live lock is incorrectly reinitialized viaspin_lock_init()/mutex_init()/etc., or whether there is any lockheld during task exit.config PROVE_LOCKINGbool "Lock debugging: prove locking correctness"depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORTselect LOCKDEPselect DEBUG_SPINLOCKselect DEBUG_MUTEXESselect DEBUG_LOCK_ALLOCdefault nhelpThis feature enables the kernel to prove that all lockingthat occurs in the kernel runtime is mathematicallycorrect: that under no circumstance could an arbitrary (andnot yet triggered) combination of observed lockingsequences (on an arbitrary number of CPUs, running anarbitrary number of tasks and interrupt contexts) cause adeadlock.In short, this feature enables the kernel to report lockingrelated deadlocks before they actually occur.The proof does not depend on how hard and complex adeadlock scenario would be to trigger: how manyparticipant CPUs, tasks and irq-contexts would be neededfor it to trigger. The proof also does not depend ontiming: if a race and a resulting deadlock is possibletheoretically (no matter how unlikely the race scenariois), it will be proven so and will immediately bereported by the kernel (once the event is observed thatmakes the deadlock theoretically possible).If a deadlock is impossible (i.e. the locking rules, asobserved by the kernel, are mathematically correct), thekernel reports nothing.NOTE: this feature can also be enabled for rwlocks, mutexesand rwsems - in which case all dependencies between thesedifferent locking variants are observed and mapped too, andthe proof of observed correctness is also maintained for anarbitrary combination of these separate locking variants.For more details, see Documentation/lockdep-design.txt.config LOCKDEPbooldepends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORTselect STACKTRACEselect FRAME_POINTER if !X86 && !MIPSselect KALLSYMSselect KALLSYMS_ALLconfig LOCK_STATbool "Lock usage statistics"depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORTselect LOCKDEPselect DEBUG_SPINLOCKselect DEBUG_MUTEXESselect DEBUG_LOCK_ALLOCdefault nhelpThis feature enables tracking lock contention pointsFor more details, see Documentation/lockstat.txtconfig DEBUG_LOCKDEPbool "Lock dependency engine debugging"depends on DEBUG_KERNEL && LOCKDEPhelpIf you say Y here, the lock dependency engine will doadditional runtime checks to debug itself, at the priceof more runtime overhead.config TRACE_IRQFLAGSdepends on DEBUG_KERNELbooldefault ydepends on TRACE_IRQFLAGS_SUPPORTdepends on PROVE_LOCKINGconfig DEBUG_SPINLOCK_SLEEPbool "Spinlock debugging: sleep-inside-spinlock checking"depends on DEBUG_KERNELhelpIf you say Y here, various routines which may sleep will become verynoisy if they are called with a spinlock held.config DEBUG_LOCKING_API_SELFTESTSbool "Locking API boot-time self-tests"depends on DEBUG_KERNELhelpSay Y here if you want the kernel to run a short self-test duringbootup. The self-test checks whether common types of locking bugsare detected by debugging mechanisms or not. (if you disablelock debugging then those bugs wont be detected of course.)The following locking APIs are covered: spinlocks, rwlocks,mutexes and rwsems.config STACKTRACEbooldepends on DEBUG_KERNELdepends on STACKTRACE_SUPPORTconfig DEBUG_KOBJECTbool "kobject debugging"depends on DEBUG_KERNELhelpIf you say Y here, some extra kobject debugging messages will be sentto the syslog.config DEBUG_HIGHMEMbool "Highmem debugging"depends on DEBUG_KERNEL && HIGHMEMhelpThis options enables addition error checking for high memory systems.Disable for production systems.config DEBUG_BUGVERBOSEbool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDEDdepends on BUGdepends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || FRV || SUPERH || GENERIC_BUG || BLACKFINdefault !EMBEDDEDhelpSay Y here to make BUG() panics output the file name and line numberof the BUG call as well as the EIP and oops trace. This aidsdebugging but costs about 70-100K of memory.config DEBUG_INFObool "Compile the kernel with debug info"depends on DEBUG_KERNELhelpIf you say Y here the resulting kernel image will includedebugging info resulting in a larger kernel image.This adds debug symbols to the kernel and modules (gcc -g), andis needed if you intend to use kernel crashdump or binary objecttools like crash, kgdb, LKCD, gdb, etc on the kernel.Say Y here only if you plan to debug the kernel.If unsure, say N.config DEBUG_VMbool "Debug VM"depends on DEBUG_KERNELhelpEnable this to turn on extended checks in the virtual-memory systemthat may impact performance.If unsure, say N.config DEBUG_LISTbool "Debug linked list manipulation"depends on DEBUG_KERNELhelpEnable this to turn on extended checks in the linked-listwalking routines.If unsure, say N.config DEBUG_SGbool "Debug SG table operations"depends on DEBUG_KERNELhelpEnable this to turn on checks on scatter-gather tables. This canhelp find problems with drivers that do not properly initializetheir sg tables.If unsure, say N.config FRAME_POINTERbool "Compile the kernel with frame pointers"depends on DEBUG_KERNEL && (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390 || AVR32 || SUPERH || BLACKFIN)default y if DEBUG_INFO && UMLhelpIf you say Y here the resulting kernel image will be slightly largerand slower, but it might give very useful debugging information onsome architectures or if you use external debuggers.If you don't debug the kernel, you can say N.config FORCED_INLININGbool "Force gcc to inline functions marked 'inline'"depends on DEBUG_KERNELdefault yhelpThis option determines if the kernel forces gcc to inline the functionsdevelopers have marked 'inline'. Doing so takes away freedom from gcc todo what it thinks is best, which is desirable for the gcc 3.x series ofcompilers. The gcc 4.x series have a rewritten inlining algorithm anddisabling this option will generate a smaller kernel there. Hopefullythis algorithm is so good that allowing gcc4 to make the decision canbecome the default in the future, until then this option is there totest gcc for this.config BOOT_PRINTK_DELAYbool "Delay each boot printk message by N milliseconds"depends on DEBUG_KERNEL && PRINTK && GENERIC_CALIBRATE_DELAYhelpThis build option allows you to read kernel boot messagesby inserting a short delay after each one. The delay isspecified in milliseconds on the kernel command line,using "boot_delay=N".It is likely that you would also need to use "lpj=M" to presetthe "loops per jiffie" value.See a previous boot log for the "lpj" value to use for yoursystem, and then set "lpj=M" before setting "boot_delay=N".NOTE: Using this option may adversely affect SMP systems.I.e., processors other than the first one may not boot up.BOOT_PRINTK_DELAY also may cause DETECT_SOFTLOCKUP to detectwhat it believes to be lockup conditions.config RCU_TORTURE_TESTtristate "torture tests for RCU"depends on DEBUG_KERNELdepends on mdefault nhelpThis option provides a kernel module that runs torture testson the RCU infrastructure. The kernel module may be builtafter the fact on the running kernel to be tested, if desired.Say M if you want the RCU torture tests to build as a module.Say N if you are unsure.config LKDTMtristate "Linux Kernel Dump Test Tool Module"depends on DEBUG_KERNELdepends on KPROBESdefault nhelpThis module enables testing of the different dumping mechanisms byinducing system failures at predefined crash points.If you don't need it: say NChoose M here to compile this code as a module. The module will becalled lkdtm.Documentation on how to use the module can be found indrivers/misc/lkdtm.cconfig FAULT_INJECTIONbool "Fault-injection framework"depends on DEBUG_KERNELhelpProvide fault-injection framework.For more details, see Documentation/fault-injection/.config FAILSLABbool "Fault-injection capability for kmalloc"depends on FAULT_INJECTIONhelpProvide fault-injection capability for kmalloc.config FAIL_PAGE_ALLOCbool "Fault-injection capabilitiy for alloc_pages()"depends on FAULT_INJECTIONhelpProvide fault-injection capability for alloc_pages().config FAIL_MAKE_REQUESTbool "Fault-injection capability for disk IO"depends on FAULT_INJECTIONhelpProvide fault-injection capability for disk IO.config FAULT_INJECTION_DEBUG_FSbool "Debugfs entries for fault-injection capabilities"depends on FAULT_INJECTION && SYSFS && DEBUG_FShelpEnable configuration of fault-injection capabilities via debugfs.config FAULT_INJECTION_STACKTRACE_FILTERbool "stacktrace filter for fault-injection capabilities"depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORTdepends on !X86_64select STACKTRACEselect FRAME_POINTERhelpProvide stacktrace filter for fault-injection capabilitiessource "samples/Kconfig"
