Kconfig.debug 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  1. config PRINTK_TIME
  2. bool "Show timing information on printks"
  3. depends on PRINTK
  4. help
  5. Selecting this option causes timing information to be
  6. included in printk output. This allows you to measure
  7. the interval between kernel operations, including bootup
  8. operations. This is useful for identifying long delays
  9. in kernel startup.
  10. config DEFAULT_MESSAGE_LOGLEVEL
  11. int "Default message log level (1-7)"
  12. range 1 7
  13. default "4"
  14. help
  15. Default log level for printk statements with no specified priority.
  16. This was hard-coded to KERN_WARNING since at least 2.6.10 but folks
  17. that are auditing their logs closely may want to set it to a lower
  18. priority.
  19. config ENABLE_WARN_DEPRECATED
  20. bool "Enable __deprecated logic"
  21. default y
  22. help
  23. Enable the __deprecated logic in the kernel build.
  24. Disable this to suppress the "warning: 'foo' is deprecated
  25. (declared at kernel/power/somefile.c:1234)" messages.
  26. config ENABLE_MUST_CHECK
  27. bool "Enable __must_check logic"
  28. default y
  29. help
  30. Enable the __must_check logic in the kernel build. Disable this to
  31. suppress the "warning: ignoring return value of 'foo', declared with
  32. attribute warn_unused_result" messages.
  33. config FRAME_WARN
  34. int "Warn for stack frames larger than (needs gcc 4.4)"
  35. range 0 8192
  36. default 1024 if !64BIT
  37. default 2048 if 64BIT
  38. help
  39. Tell gcc to warn at build time for stack frames larger than this.
  40. Setting this too low will cause a lot of warnings.
  41. Setting it to 0 disables the warning.
  42. Requires gcc 4.4
  43. config MAGIC_SYSRQ
  44. bool "Magic SysRq key"
  45. depends on !UML
  46. help
  47. If you say Y here, you will have some control over the system even
  48. if the system crashes for example during kernel debugging (e.g., you
  49. will be able to flush the buffer cache to disk, reboot the system
  50. immediately or dump some status information). This is accomplished
  51. by pressing various keys while holding SysRq (Alt+PrintScreen). It
  52. also works on a serial console (on PC hardware at least), if you
  53. send a BREAK and then within 5 seconds a command keypress. The
  54. keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
  55. unless you really know what this hack does.
  56. config STRIP_ASM_SYMS
  57. bool "Strip assembler-generated symbols during link"
  58. default n
  59. help
  60. Strip internal assembler-generated symbols during a link (symbols
  61. that look like '.Lxxx') so they don't pollute the output of
  62. get_wchan() and suchlike.
  63. config UNUSED_SYMBOLS
  64. bool "Enable unused/obsolete exported symbols"
  65. default y if X86
  66. help
  67. Unused but exported symbols make the kernel needlessly bigger. For
  68. that reason most of these unused exports will soon be removed. This
  69. option is provided temporarily to provide a transition period in case
  70. some external kernel module needs one of these symbols anyway. If you
  71. encounter such a case in your module, consider if you are actually
  72. using the right API. (rationale: since nobody in the kernel is using
  73. this in a module, there is a pretty good chance it's actually the
  74. wrong interface to use). If you really need the symbol, please send a
  75. mail to the linux kernel mailing list mentioning the symbol and why
  76. you really need it, and what the merge plan to the mainline kernel for
  77. your module is.
  78. config DEBUG_FS
  79. bool "Debug Filesystem"
  80. help
  81. debugfs is a virtual file system that kernel developers use to put
  82. debugging files into. Enable this option to be able to read and
  83. write to these files.
  84. For detailed documentation on the debugfs API, see
  85. Documentation/DocBook/filesystems.
  86. If unsure, say N.
  87. config HEADERS_CHECK
  88. bool "Run 'make headers_check' when building vmlinux"
  89. depends on !UML
  90. help
  91. This option will extract the user-visible kernel headers whenever
  92. building the kernel, and will run basic sanity checks on them to
  93. ensure that exported files do not attempt to include files which
  94. were not exported, etc.
  95. If you're making modifications to header files which are
  96. relevant for userspace, say 'Y', and check the headers
  97. exported to $(INSTALL_HDR_PATH) (usually 'usr/include' in
  98. your build tree), to make sure they're suitable.
  99. config DEBUG_SECTION_MISMATCH
  100. bool "Enable full Section mismatch analysis"
  101. help
  102. The section mismatch analysis checks if there are illegal
  103. references from one section to another section.
  104. Linux will during link or during runtime drop some sections
  105. and any use of code/data previously in these sections will
  106. most likely result in an oops.
  107. In the code functions and variables are annotated with
  108. __init, __devinit etc. (see full list in include/linux/init.h)
  109. which results in the code/data being placed in specific sections.
  110. The section mismatch analysis is always done after a full
  111. kernel build but enabling this option will in addition
  112. do the following:
  113. - Add the option -fno-inline-functions-called-once to gcc
  114. When inlining a function annotated __init in a non-init
  115. function we would lose the section information and thus
  116. the analysis would not catch the illegal reference.
  117. This option tells gcc to inline less but will also
  118. result in a larger kernel.
  119. - Run the section mismatch analysis for each module/built-in.o
  120. When we run the section mismatch analysis on vmlinux.o we
  121. lose valueble information about where the mismatch was
  122. introduced.
  123. Running the analysis for each module/built-in.o file
  124. will tell where the mismatch happens much closer to the
  125. source. The drawback is that we will report the same
  126. mismatch at least twice.
  127. - Enable verbose reporting from modpost to help solving
  128. the section mismatches reported.
  129. config DEBUG_KERNEL
  130. bool "Kernel debugging"
  131. help
  132. Say Y here if you are developing drivers or trying to debug and
  133. identify kernel problems.
  134. config DEBUG_SHIRQ
  135. bool "Debug shared IRQ handlers"
  136. depends on DEBUG_KERNEL && GENERIC_HARDIRQS
  137. help
  138. Enable this to generate a spurious interrupt as soon as a shared
  139. interrupt handler is registered, and just before one is deregistered.
  140. Drivers ought to be able to handle interrupts coming in at those
  141. points; some don't and need to be caught.
  142. config LOCKUP_DETECTOR
  143. bool "Detect Hard and Soft Lockups"
  144. depends on DEBUG_KERNEL && !S390
  145. help
  146. Say Y here to enable the kernel to act as a watchdog to detect
  147. hard and soft lockups.
  148. Softlockups are bugs that cause the kernel to loop in kernel
  149. mode for more than 60 seconds, without giving other tasks a
  150. chance to run. The current stack trace is displayed upon
  151. detection and the system will stay locked up.
  152. Hardlockups are bugs that cause the CPU to loop in kernel mode
  153. for more than 60 seconds, without letting other interrupts have a
  154. chance to run. The current stack trace is displayed upon detection
  155. and the system will stay locked up.
  156. The overhead should be minimal. A periodic hrtimer runs to
  157. generate interrupts and kick the watchdog task every 10-12 seconds.
  158. An NMI is generated every 60 seconds or so to check for hardlockups.
  159. config HARDLOCKUP_DETECTOR
  160. def_bool LOCKUP_DETECTOR && PERF_EVENTS && HAVE_PERF_EVENTS_NMI && \
  161. !ARCH_HAS_NMI_WATCHDOG
  162. config BOOTPARAM_HARDLOCKUP_PANIC
  163. bool "Panic (Reboot) On Hard Lockups"
  164. depends on LOCKUP_DETECTOR
  165. help
  166. Say Y here to enable the kernel to panic on "hard lockups",
  167. which are bugs that cause the kernel to loop in kernel
  168. mode with interrupts disabled for more than 60 seconds.
  169. Say N if unsure.
  170. config BOOTPARAM_HARDLOCKUP_PANIC_VALUE
  171. int
  172. depends on LOCKUP_DETECTOR
  173. range 0 1
  174. default 0 if !BOOTPARAM_HARDLOCKUP_PANIC
  175. default 1 if BOOTPARAM_HARDLOCKUP_PANIC
  176. config BOOTPARAM_SOFTLOCKUP_PANIC
  177. bool "Panic (Reboot) On Soft Lockups"
  178. depends on LOCKUP_DETECTOR
  179. help
  180. Say Y here to enable the kernel to panic on "soft lockups",
  181. which are bugs that cause the kernel to loop in kernel
  182. mode for more than 60 seconds, without giving other tasks a
  183. chance to run.
  184. The panic can be used in combination with panic_timeout,
  185. to cause the system to reboot automatically after a
  186. lockup has been detected. This feature is useful for
  187. high-availability systems that have uptime guarantees and
  188. where a lockup must be resolved ASAP.
  189. Say N if unsure.
  190. config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE
  191. int
  192. depends on LOCKUP_DETECTOR
  193. range 0 1
  194. default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC
  195. default 1 if BOOTPARAM_SOFTLOCKUP_PANIC
  196. config DETECT_HUNG_TASK
  197. bool "Detect Hung Tasks"
  198. depends on DEBUG_KERNEL
  199. default DETECT_SOFTLOCKUP
  200. help
  201. Say Y here to enable the kernel to detect "hung tasks",
  202. which are bugs that cause the task to be stuck in
  203. uninterruptible "D" state indefinitiley.
  204. When a hung task is detected, the kernel will print the
  205. current stack trace (which you should report), but the
  206. task will stay in uninterruptible state. If lockdep is
  207. enabled then all held locks will also be reported. This
  208. feature has negligible overhead.
  209. config BOOTPARAM_HUNG_TASK_PANIC
  210. bool "Panic (Reboot) On Hung Tasks"
  211. depends on DETECT_HUNG_TASK
  212. help
  213. Say Y here to enable the kernel to panic on "hung tasks",
  214. which are bugs that cause the kernel to leave a task stuck
  215. in uninterruptible "D" state.
  216. The panic can be used in combination with panic_timeout,
  217. to cause the system to reboot automatically after a
  218. hung task has been detected. This feature is useful for
  219. high-availability systems that have uptime guarantees and
  220. where a hung tasks must be resolved ASAP.
  221. Say N if unsure.
  222. config BOOTPARAM_HUNG_TASK_PANIC_VALUE
  223. int
  224. depends on DETECT_HUNG_TASK
  225. range 0 1
  226. default 0 if !BOOTPARAM_HUNG_TASK_PANIC
  227. default 1 if BOOTPARAM_HUNG_TASK_PANIC
  228. config SCHED_DEBUG
  229. bool "Collect scheduler debugging info"
  230. depends on DEBUG_KERNEL && PROC_FS
  231. default y
  232. help
  233. If you say Y here, the /proc/sched_debug file will be provided
  234. that can help debug the scheduler. The runtime overhead of this
  235. option is minimal.
  236. config SCHEDSTATS
  237. bool "Collect scheduler statistics"
  238. depends on DEBUG_KERNEL && PROC_FS
  239. help
  240. If you say Y here, additional code will be inserted into the
  241. scheduler and related routines to collect statistics about
  242. scheduler behavior and provide them in /proc/schedstat. These
  243. stats may be useful for both tuning and debugging the scheduler
  244. If you aren't debugging the scheduler or trying to tune a specific
  245. application, you can say N to avoid the very slight overhead
  246. this adds.
  247. config TIMER_STATS
  248. bool "Collect kernel timers statistics"
  249. depends on DEBUG_KERNEL && PROC_FS
  250. help
  251. If you say Y here, additional code will be inserted into the
  252. timer routines to collect statistics about kernel timers being
  253. reprogrammed. The statistics can be read from /proc/timer_stats.
  254. The statistics collection is started by writing 1 to /proc/timer_stats,
  255. writing 0 stops it. This feature is useful to collect information
  256. about timer usage patterns in kernel and userspace. This feature
  257. is lightweight if enabled in the kernel config but not activated
  258. (it defaults to deactivated on bootup and will only be activated
  259. if some application like powertop activates it explicitly).
  260. config DEBUG_OBJECTS
  261. bool "Debug object operations"
  262. depends on DEBUG_KERNEL
  263. help
  264. If you say Y here, additional code will be inserted into the
  265. kernel to track the life time of various objects and validate
  266. the operations on those objects.
  267. config DEBUG_OBJECTS_SELFTEST
  268. bool "Debug objects selftest"
  269. depends on DEBUG_OBJECTS
  270. help
  271. This enables the selftest of the object debug code.
  272. config DEBUG_OBJECTS_FREE
  273. bool "Debug objects in freed memory"
  274. depends on DEBUG_OBJECTS
  275. help
  276. This enables checks whether a k/v free operation frees an area
  277. which contains an object which has not been deactivated
  278. properly. This can make kmalloc/kfree-intensive workloads
  279. much slower.
  280. config DEBUG_OBJECTS_TIMERS
  281. bool "Debug timer objects"
  282. depends on DEBUG_OBJECTS
  283. help
  284. If you say Y here, additional code will be inserted into the
  285. timer routines to track the life time of timer objects and
  286. validate the timer operations.
  287. config DEBUG_OBJECTS_WORK
  288. bool "Debug work objects"
  289. depends on DEBUG_OBJECTS
  290. help
  291. If you say Y here, additional code will be inserted into the
  292. work queue routines to track the life time of work objects and
  293. validate the work operations.
  294. config DEBUG_OBJECTS_RCU_HEAD
  295. bool "Debug RCU callbacks objects"
  296. depends on DEBUG_OBJECTS && PREEMPT
  297. help
  298. Enable this to turn on debugging of RCU list heads (call_rcu() usage).
  299. config DEBUG_OBJECTS_PERCPU_COUNTER
  300. bool "Debug percpu counter objects"
  301. depends on DEBUG_OBJECTS
  302. help
  303. If you say Y here, additional code will be inserted into the
  304. percpu counter routines to track the life time of percpu counter
  305. objects and validate the percpu counter operations.
  306. config DEBUG_OBJECTS_ENABLE_DEFAULT
  307. int "debug_objects bootup default value (0-1)"
  308. range 0 1
  309. default "1"
  310. depends on DEBUG_OBJECTS
  311. help
  312. Debug objects boot parameter default value
  313. config DEBUG_SLAB
  314. bool "Debug slab memory allocations"
  315. depends on DEBUG_KERNEL && SLAB && !KMEMCHECK
  316. help
  317. Say Y here to have the kernel do limited verification on memory
  318. allocation as well as poisoning memory on free to catch use of freed
  319. memory. This can make kmalloc/kfree-intensive workloads much slower.
  320. config DEBUG_SLAB_LEAK
  321. bool "Memory leak debugging"
  322. depends on DEBUG_SLAB
  323. config SLUB_DEBUG_ON
  324. bool "SLUB debugging on by default"
  325. depends on SLUB && SLUB_DEBUG && !KMEMCHECK
  326. default n
  327. help
  328. Boot with debugging on by default. SLUB boots by default with
  329. the runtime debug capabilities switched off. Enabling this is
  330. equivalent to specifying the "slub_debug" parameter on boot.
  331. There is no support for more fine grained debug control like
  332. possible with slub_debug=xxx. SLUB debugging may be switched
  333. off in a kernel built with CONFIG_SLUB_DEBUG_ON by specifying
  334. "slub_debug=-".
  335. config SLUB_STATS
  336. default n
  337. bool "Enable SLUB performance statistics"
  338. depends on SLUB && SYSFS
  339. help
  340. SLUB statistics are useful to debug SLUBs allocation behavior in
  341. order find ways to optimize the allocator. This should never be
  342. enabled for production use since keeping statistics slows down
  343. the allocator by a few percentage points. The slabinfo command
  344. supports the determination of the most active slabs to figure
  345. out which slabs are relevant to a particular load.
  346. Try running: slabinfo -DA
  347. config DEBUG_KMEMLEAK
  348. bool "Kernel memory leak detector"
  349. depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
  350. (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE || TILE)
  351. select DEBUG_FS if SYSFS
  352. select STACKTRACE if STACKTRACE_SUPPORT
  353. select KALLSYMS
  354. select CRC32
  355. help
  356. Say Y here if you want to enable the memory leak
  357. detector. The memory allocation/freeing is traced in a way
  358. similar to the Boehm's conservative garbage collector, the
  359. difference being that the orphan objects are not freed but
  360. only shown in /sys/kernel/debug/kmemleak. Enabling this
  361. feature will introduce an overhead to memory
  362. allocations. See Documentation/kmemleak.txt for more
  363. details.
  364. Enabling DEBUG_SLAB or SLUB_DEBUG may increase the chances
  365. of finding leaks due to the slab objects poisoning.
  366. In order to access the kmemleak file, debugfs needs to be
  367. mounted (usually at /sys/kernel/debug).
  368. config DEBUG_KMEMLEAK_EARLY_LOG_SIZE
  369. int "Maximum kmemleak early log entries"
  370. depends on DEBUG_KMEMLEAK
  371. range 200 40000
  372. default 400
  373. help
  374. Kmemleak must track all the memory allocations to avoid
  375. reporting false positives. Since memory may be allocated or
  376. freed before kmemleak is initialised, an early log buffer is
  377. used to store these actions. If kmemleak reports "early log
  378. buffer exceeded", please increase this value.
  379. config DEBUG_KMEMLEAK_TEST
  380. tristate "Simple test for the kernel memory leak detector"
  381. depends on DEBUG_KMEMLEAK
  382. help
  383. Say Y or M here to build a test for the kernel memory leak
  384. detector. This option enables a module that explicitly leaks
  385. memory.
  386. If unsure, say N.
  387. config DEBUG_KMEMLEAK_DEFAULT_OFF
  388. bool "Default kmemleak to off"
  389. depends on DEBUG_KMEMLEAK
  390. help
  391. Say Y here to disable kmemleak by default. It can then be enabled
  392. on the command line via kmemleak=on.
  393. config DEBUG_PREEMPT
  394. bool "Debug preemptible kernel"
  395. depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT
  396. default y
  397. help
  398. If you say Y here then the kernel will use a debug variant of the
  399. commonly used smp_processor_id() function and will print warnings
  400. if kernel code uses it in a preemption-unsafe way. Also, the kernel
  401. will detect preemption count underflows.
  402. config DEBUG_RT_MUTEXES
  403. bool "RT Mutex debugging, deadlock detection"
  404. depends on DEBUG_KERNEL && RT_MUTEXES
  405. help
  406. This allows rt mutex semantics violations and rt mutex related
  407. deadlocks (lockups) to be detected and reported automatically.
  408. config DEBUG_PI_LIST
  409. bool
  410. default y
  411. depends on DEBUG_RT_MUTEXES
  412. config RT_MUTEX_TESTER
  413. bool "Built-in scriptable tester for rt-mutexes"
  414. depends on DEBUG_KERNEL && RT_MUTEXES
  415. help
  416. This option enables a rt-mutex tester.
  417. config DEBUG_SPINLOCK
  418. bool "Spinlock and rw-lock debugging: basic checks"
  419. depends on DEBUG_KERNEL
  420. help
  421. Say Y here and build SMP to catch missing spinlock initialization
  422. and certain other kinds of spinlock errors commonly made. This is
  423. best used in conjunction with the NMI watchdog so that spinlock
  424. deadlocks are also debuggable.
  425. config DEBUG_MUTEXES
  426. bool "Mutex debugging: basic checks"
  427. depends on DEBUG_KERNEL
  428. help
  429. This feature allows mutex semantics violations to be detected and
  430. reported.
  431. config DEBUG_LOCK_ALLOC
  432. bool "Lock debugging: detect incorrect freeing of live locks"
  433. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  434. select DEBUG_SPINLOCK
  435. select DEBUG_MUTEXES
  436. select LOCKDEP
  437. help
  438. This feature will check whether any held lock (spinlock, rwlock,
  439. mutex or rwsem) is incorrectly freed by the kernel, via any of the
  440. memory-freeing routines (kfree(), kmem_cache_free(), free_pages(),
  441. vfree(), etc.), whether a live lock is incorrectly reinitialized via
  442. spin_lock_init()/mutex_init()/etc., or whether there is any lock
  443. held during task exit.
  444. config PROVE_LOCKING
  445. bool "Lock debugging: prove locking correctness"
  446. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  447. select LOCKDEP
  448. select DEBUG_SPINLOCK
  449. select DEBUG_MUTEXES
  450. select DEBUG_LOCK_ALLOC
  451. select TRACE_IRQFLAGS
  452. default n
  453. help
  454. This feature enables the kernel to prove that all locking
  455. that occurs in the kernel runtime is mathematically
  456. correct: that under no circumstance could an arbitrary (and
  457. not yet triggered) combination of observed locking
  458. sequences (on an arbitrary number of CPUs, running an
  459. arbitrary number of tasks and interrupt contexts) cause a
  460. deadlock.
  461. In short, this feature enables the kernel to report locking
  462. related deadlocks before they actually occur.
  463. The proof does not depend on how hard and complex a
  464. deadlock scenario would be to trigger: how many
  465. participant CPUs, tasks and irq-contexts would be needed
  466. for it to trigger. The proof also does not depend on
  467. timing: if a race and a resulting deadlock is possible
  468. theoretically (no matter how unlikely the race scenario
  469. is), it will be proven so and will immediately be
  470. reported by the kernel (once the event is observed that
  471. makes the deadlock theoretically possible).
  472. If a deadlock is impossible (i.e. the locking rules, as
  473. observed by the kernel, are mathematically correct), the
  474. kernel reports nothing.
  475. NOTE: this feature can also be enabled for rwlocks, mutexes
  476. and rwsems - in which case all dependencies between these
  477. different locking variants are observed and mapped too, and
  478. the proof of observed correctness is also maintained for an
  479. arbitrary combination of these separate locking variants.
  480. For more details, see Documentation/lockdep-design.txt.
  481. config PROVE_RCU
  482. bool "RCU debugging: prove RCU correctness"
  483. depends on PROVE_LOCKING
  484. default n
  485. help
  486. This feature enables lockdep extensions that check for correct
  487. use of RCU APIs. This is currently under development. Say Y
  488. if you want to debug RCU usage or help work on the PROVE_RCU
  489. feature.
  490. Say N if you are unsure.
  491. config PROVE_RCU_REPEATEDLY
  492. bool "RCU debugging: don't disable PROVE_RCU on first splat"
  493. depends on PROVE_RCU
  494. default n
  495. help
  496. By itself, PROVE_RCU will disable checking upon issuing the
  497. first warning (or "splat"). This feature prevents such
  498. disabling, allowing multiple RCU-lockdep warnings to be printed
  499. on a single reboot.
  500. Say Y to allow multiple RCU-lockdep warnings per boot.
  501. Say N if you are unsure.
  502. config SPARSE_RCU_POINTER
  503. bool "RCU debugging: sparse-based checks for pointer usage"
  504. default n
  505. help
  506. This feature enables the __rcu sparse annotation for
  507. RCU-protected pointers. This annotation will cause sparse
  508. to flag any non-RCU used of annotated pointers. This can be
  509. helpful when debugging RCU usage. Please note that this feature
  510. is not intended to enforce code cleanliness; it is instead merely
  511. a debugging aid.
  512. Say Y to make sparse flag questionable use of RCU-protected pointers
  513. Say N if you are unsure.
  514. config LOCKDEP
  515. bool
  516. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  517. select STACKTRACE
  518. select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE
  519. select KALLSYMS
  520. select KALLSYMS_ALL
  521. config LOCK_STAT
  522. bool "Lock usage statistics"
  523. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  524. select LOCKDEP
  525. select DEBUG_SPINLOCK
  526. select DEBUG_MUTEXES
  527. select DEBUG_LOCK_ALLOC
  528. default n
  529. help
  530. This feature enables tracking lock contention points
  531. For more details, see Documentation/lockstat.txt
  532. This also enables lock events required by "perf lock",
  533. subcommand of perf.
  534. If you want to use "perf lock", you also need to turn on
  535. CONFIG_EVENT_TRACING.
  536. CONFIG_LOCK_STAT defines "contended" and "acquired" lock events.
  537. (CONFIG_LOCKDEP defines "acquire" and "release" events.)
  538. config DEBUG_LOCKDEP
  539. bool "Lock dependency engine debugging"
  540. depends on DEBUG_KERNEL && LOCKDEP
  541. help
  542. If you say Y here, the lock dependency engine will do
  543. additional runtime checks to debug itself, at the price
  544. of more runtime overhead.
  545. config TRACE_IRQFLAGS
  546. bool
  547. help
  548. Enables hooks to interrupt enabling and disabling for
  549. either tracing or lock debugging.
  550. config DEBUG_SPINLOCK_SLEEP
  551. bool "Spinlock debugging: sleep-inside-spinlock checking"
  552. depends on DEBUG_KERNEL
  553. help
  554. If you say Y here, various routines which may sleep will become very
  555. noisy if they are called with a spinlock held.
  556. config DEBUG_LOCKING_API_SELFTESTS
  557. bool "Locking API boot-time self-tests"
  558. depends on DEBUG_KERNEL
  559. help
  560. Say Y here if you want the kernel to run a short self-test during
  561. bootup. The self-test checks whether common types of locking bugs
  562. are detected by debugging mechanisms or not. (if you disable
  563. lock debugging then those bugs wont be detected of course.)
  564. The following locking APIs are covered: spinlocks, rwlocks,
  565. mutexes and rwsems.
  566. config STACKTRACE
  567. bool
  568. depends on STACKTRACE_SUPPORT
  569. config DEBUG_KOBJECT
  570. bool "kobject debugging"
  571. depends on DEBUG_KERNEL
  572. help
  573. If you say Y here, some extra kobject debugging messages will be sent
  574. to the syslog.
  575. config DEBUG_HIGHMEM
  576. bool "Highmem debugging"
  577. depends on DEBUG_KERNEL && HIGHMEM
  578. help
  579. This options enables addition error checking for high memory systems.
  580. Disable for production systems.
  581. config DEBUG_BUGVERBOSE
  582. bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT
  583. depends on BUG
  584. depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \
  585. FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300
  586. default y
  587. help
  588. Say Y here to make BUG() panics output the file name and line number
  589. of the BUG call as well as the EIP and oops trace. This aids
  590. debugging but costs about 70-100K of memory.
  591. config DEBUG_INFO
  592. bool "Compile the kernel with debug info"
  593. depends on DEBUG_KERNEL
  594. help
  595. If you say Y here the resulting kernel image will include
  596. debugging info resulting in a larger kernel image.
  597. This adds debug symbols to the kernel and modules (gcc -g), and
  598. is needed if you intend to use kernel crashdump or binary object
  599. tools like crash, kgdb, LKCD, gdb, etc on the kernel.
  600. Say Y here only if you plan to debug the kernel.
  601. If unsure, say N.
  602. config DEBUG_INFO_REDUCED
  603. bool "Reduce debugging information"
  604. depends on DEBUG_INFO
  605. help
  606. If you say Y here gcc is instructed to generate less debugging
  607. information for structure types. This means that tools that
  608. need full debugging information (like kgdb or systemtap) won't
  609. be happy. But if you merely need debugging information to
  610. resolve line numbers there is no loss. Advantage is that
  611. build directory object sizes shrink dramatically over a full
  612. DEBUG_INFO build and compile times are reduced too.
  613. Only works with newer gcc versions.
  614. config DEBUG_VM
  615. bool "Debug VM"
  616. depends on DEBUG_KERNEL
  617. help
  618. Enable this to turn on extended checks in the virtual-memory system
  619. that may impact performance.
  620. If unsure, say N.
  621. config DEBUG_VIRTUAL
  622. bool "Debug VM translations"
  623. depends on DEBUG_KERNEL && X86
  624. help
  625. Enable some costly sanity checks in virtual to page code. This can
  626. catch mistakes with virt_to_page() and friends.
  627. If unsure, say N.
  628. config DEBUG_NOMMU_REGIONS
  629. bool "Debug the global anon/private NOMMU mapping region tree"
  630. depends on DEBUG_KERNEL && !MMU
  631. help
  632. This option causes the global tree of anonymous and private mapping
  633. regions to be regularly checked for invalid topology.
  634. config DEBUG_WRITECOUNT
  635. bool "Debug filesystem writers count"
  636. depends on DEBUG_KERNEL
  637. help
  638. Enable this to catch wrong use of the writers count in struct
  639. vfsmount. This will increase the size of each file struct by
  640. 32 bits.
  641. If unsure, say N.
  642. config DEBUG_MEMORY_INIT
  643. bool "Debug memory initialisation" if EXPERT
  644. default !EXPERT
  645. help
  646. Enable this for additional checks during memory initialisation.
  647. The sanity checks verify aspects of the VM such as the memory model
  648. and other information provided by the architecture. Verbose
  649. information will be printed at KERN_DEBUG loglevel depending
  650. on the mminit_loglevel= command-line option.
  651. If unsure, say Y
  652. config DEBUG_LIST
  653. bool "Debug linked list manipulation"
  654. depends on DEBUG_KERNEL
  655. help
  656. Enable this to turn on extended checks in the linked-list
  657. walking routines.
  658. If unsure, say N.
  659. config TEST_LIST_SORT
  660. bool "Linked list sorting test"
  661. depends on DEBUG_KERNEL
  662. help
  663. Enable this to turn on 'list_sort()' function test. This test is
  664. executed only once during system boot, so affects only boot time.
  665. If unsure, say N.
  666. config DEBUG_SG
  667. bool "Debug SG table operations"
  668. depends on DEBUG_KERNEL
  669. help
  670. Enable this to turn on checks on scatter-gather tables. This can
  671. help find problems with drivers that do not properly initialize
  672. their sg tables.
  673. If unsure, say N.
  674. config DEBUG_NOTIFIERS
  675. bool "Debug notifier call chains"
  676. depends on DEBUG_KERNEL
  677. help
  678. Enable this to turn on sanity checking for notifier call chains.
  679. This is most useful for kernel developers to make sure that
  680. modules properly unregister themselves from notifier chains.
  681. This is a relatively cheap check but if you care about maximum
  682. performance, say N.
  683. config DEBUG_CREDENTIALS
  684. bool "Debug credential management"
  685. depends on DEBUG_KERNEL
  686. help
  687. Enable this to turn on some debug checking for credential
  688. management. The additional code keeps track of the number of
  689. pointers from task_structs to any given cred struct, and checks to
  690. see that this number never exceeds the usage count of the cred
  691. struct.
  692. Furthermore, if SELinux is enabled, this also checks that the
  693. security pointer in the cred struct is never seen to be invalid.
  694. If unsure, say N.
  695. #
  696. # Select this config option from the architecture Kconfig, if it
  697. # it is preferred to always offer frame pointers as a config
  698. # option on the architecture (regardless of KERNEL_DEBUG):
  699. #
  700. config ARCH_WANT_FRAME_POINTERS
  701. bool
  702. help
  703. config FRAME_POINTER
  704. bool "Compile the kernel with frame pointers"
  705. depends on DEBUG_KERNEL && \
  706. (CRIS || M68K || FRV || UML || \
  707. AVR32 || SUPERH || BLACKFIN || MN10300) || \
  708. ARCH_WANT_FRAME_POINTERS
  709. default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS
  710. help
  711. If you say Y here the resulting kernel image will be slightly
  712. larger and slower, but it gives very useful debugging information
  713. in case of kernel bugs. (precise oopses/stacktraces/warnings)
  714. config BOOT_PRINTK_DELAY
  715. bool "Delay each boot printk message by N milliseconds"
  716. depends on DEBUG_KERNEL && PRINTK && GENERIC_CALIBRATE_DELAY
  717. help
  718. This build option allows you to read kernel boot messages
  719. by inserting a short delay after each one. The delay is
  720. specified in milliseconds on the kernel command line,
  721. using "boot_delay=N".
  722. It is likely that you would also need to use "lpj=M" to preset
  723. the "loops per jiffie" value.
  724. See a previous boot log for the "lpj" value to use for your
  725. system, and then set "lpj=M" before setting "boot_delay=N".
  726. NOTE: Using this option may adversely affect SMP systems.
  727. I.e., processors other than the first one may not boot up.
  728. BOOT_PRINTK_DELAY also may cause DETECT_SOFTLOCKUP to detect
  729. what it believes to be lockup conditions.
  730. config RCU_TORTURE_TEST
  731. tristate "torture tests for RCU"
  732. depends on DEBUG_KERNEL
  733. default n
  734. help
  735. This option provides a kernel module that runs torture tests
  736. on the RCU infrastructure. The kernel module may be built
  737. after the fact on the running kernel to be tested, if desired.
  738. Say Y here if you want RCU torture tests to be built into
  739. the kernel.
  740. Say M if you want the RCU torture tests to build as a module.
  741. Say N if you are unsure.
  742. config RCU_TORTURE_TEST_RUNNABLE
  743. bool "torture tests for RCU runnable by default"
  744. depends on RCU_TORTURE_TEST = y
  745. default n
  746. help
  747. This option provides a way to build the RCU torture tests
  748. directly into the kernel without them starting up at boot
  749. time. You can use /proc/sys/kernel/rcutorture_runnable
  750. to manually override this setting. This /proc file is
  751. available only when the RCU torture tests have been built
  752. into the kernel.
  753. Say Y here if you want the RCU torture tests to start during
  754. boot (you probably don't).
  755. Say N here if you want the RCU torture tests to start only
  756. after being manually enabled via /proc.
  757. config RCU_CPU_STALL_DETECTOR
  758. bool "Check for stalled CPUs delaying RCU grace periods"
  759. depends on TREE_RCU || TREE_PREEMPT_RCU
  760. default y
  761. help
  762. This option causes RCU to printk information on which
  763. CPUs are delaying the current grace period, but only when
  764. the grace period extends for excessive time periods.
  765. Say N if you want to disable such checks.
  766. Say Y if you are unsure.
  767. config RCU_CPU_STALL_TIMEOUT
  768. int "RCU CPU stall timeout in seconds"
  769. depends on RCU_CPU_STALL_DETECTOR
  770. range 3 300
  771. default 60
  772. help
  773. If a given RCU grace period extends more than the specified
  774. number of seconds, a CPU stall warning is printed. If the
  775. RCU grace period persists, additional CPU stall warnings are
  776. printed at more widely spaced intervals.
  777. config RCU_CPU_STALL_DETECTOR_RUNNABLE
  778. bool "RCU CPU stall checking starts automatically at boot"
  779. depends on RCU_CPU_STALL_DETECTOR
  780. default y
  781. help
  782. If set, start checking for RCU CPU stalls immediately on
  783. boot. Otherwise, RCU CPU stall checking must be manually
  784. enabled.
  785. Say Y if you are unsure.
  786. Say N if you wish to suppress RCU CPU stall checking during boot.
  787. config RCU_CPU_STALL_VERBOSE
  788. bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR"
  789. depends on RCU_CPU_STALL_DETECTOR && TREE_PREEMPT_RCU
  790. default y
  791. help
  792. This option causes RCU to printk detailed per-task information
  793. for any tasks that are stalling the current RCU grace period.
  794. Say N if you are unsure.
  795. Say Y if you want to enable such checks.
  796. config KPROBES_SANITY_TEST
  797. bool "Kprobes sanity tests"
  798. depends on DEBUG_KERNEL
  799. depends on KPROBES
  800. default n
  801. help
  802. This option provides for testing basic kprobes functionality on
  803. boot. A sample kprobe, jprobe and kretprobe are inserted and
  804. verified for functionality.
  805. Say N if you are unsure.
  806. config BACKTRACE_SELF_TEST
  807. tristate "Self test for the backtrace code"
  808. depends on DEBUG_KERNEL
  809. default n
  810. help
  811. This option provides a kernel module that can be used to test
  812. the kernel stack backtrace code. This option is not useful
  813. for distributions or general kernels, but only for kernel
  814. developers working on architecture code.
  815. Note that if you want to also test saved backtraces, you will
  816. have to enable STACKTRACE as well.
  817. Say N if you are unsure.
  818. config DEBUG_BLOCK_EXT_DEVT
  819. bool "Force extended block device numbers and spread them"
  820. depends on DEBUG_KERNEL
  821. depends on BLOCK
  822. default n
  823. help
  824. BIG FAT WARNING: ENABLING THIS OPTION MIGHT BREAK BOOTING ON
  825. SOME DISTRIBUTIONS. DO NOT ENABLE THIS UNLESS YOU KNOW WHAT
  826. YOU ARE DOING. Distros, please enable this and fix whatever
  827. is broken.
  828. Conventionally, block device numbers are allocated from
  829. predetermined contiguous area. However, extended block area
  830. may introduce non-contiguous block device numbers. This
  831. option forces most block device numbers to be allocated from
  832. the extended space and spreads them to discover kernel or
  833. userland code paths which assume predetermined contiguous
  834. device number allocation.
  835. Note that turning on this debug option shuffles all the
  836. device numbers for all IDE and SCSI devices including libata
  837. ones, so root partition specified using device number
  838. directly (via rdev or root=MAJ:MIN) won't work anymore.
  839. Textual device names (root=/dev/sdXn) will continue to work.
  840. Say N if you are unsure.
  841. config DEBUG_FORCE_WEAK_PER_CPU
  842. bool "Force weak per-cpu definitions"
  843. depends on DEBUG_KERNEL
  844. help
  845. s390 and alpha require percpu variables in modules to be
  846. defined weak to work around addressing range issue which
  847. puts the following two restrictions on percpu variable
  848. definitions.
  849. 1. percpu symbols must be unique whether static or not
  850. 2. percpu variables can't be defined inside a function
  851. To ensure that generic code follows the above rules, this
  852. option forces all percpu variables to be defined as weak.
  853. config LKDTM
  854. tristate "Linux Kernel Dump Test Tool Module"
  855. depends on DEBUG_FS
  856. depends on BLOCK
  857. default n
  858. help
  859. This module enables testing of the different dumping mechanisms by
  860. inducing system failures at predefined crash points.
  861. If you don't need it: say N
  862. Choose M here to compile this code as a module. The module will be
  863. called lkdtm.
  864. Documentation on how to use the module can be found in
  865. Documentation/fault-injection/provoke-crashes.txt
  866. config CPU_NOTIFIER_ERROR_INJECT
  867. tristate "CPU notifier error injection module"
  868. depends on HOTPLUG_CPU && DEBUG_KERNEL
  869. help
  870. This option provides a kernel module that can be used to test
  871. the error handling of the cpu notifiers
  872. To compile this code as a module, choose M here: the module will
  873. be called cpu-notifier-error-inject.
  874. If unsure, say N.
  875. config FAULT_INJECTION
  876. bool "Fault-injection framework"
  877. depends on DEBUG_KERNEL
  878. help
  879. Provide fault-injection framework.
  880. For more details, see Documentation/fault-injection/.
  881. config FAILSLAB
  882. bool "Fault-injection capability for kmalloc"
  883. depends on FAULT_INJECTION
  884. depends on SLAB || SLUB
  885. help
  886. Provide fault-injection capability for kmalloc.
  887. config FAIL_PAGE_ALLOC
  888. bool "Fault-injection capabilitiy for alloc_pages()"
  889. depends on FAULT_INJECTION
  890. help
  891. Provide fault-injection capability for alloc_pages().
  892. config FAIL_MAKE_REQUEST
  893. bool "Fault-injection capability for disk IO"
  894. depends on FAULT_INJECTION && BLOCK
  895. help
  896. Provide fault-injection capability for disk IO.
  897. config FAIL_IO_TIMEOUT
  898. bool "Fault-injection capability for faking disk interrupts"
  899. depends on FAULT_INJECTION && BLOCK
  900. help
  901. Provide fault-injection capability on end IO handling. This
  902. will make the block layer "forget" an interrupt as configured,
  903. thus exercising the error handling.
  904. Only works with drivers that use the generic timeout handling,
  905. for others it wont do anything.
  906. config FAULT_INJECTION_DEBUG_FS
  907. bool "Debugfs entries for fault-injection capabilities"
  908. depends on FAULT_INJECTION && SYSFS && DEBUG_FS
  909. help
  910. Enable configuration of fault-injection capabilities via debugfs.
  911. config FAULT_INJECTION_STACKTRACE_FILTER
  912. bool "stacktrace filter for fault-injection capabilities"
  913. depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT
  914. depends on !X86_64
  915. select STACKTRACE
  916. select FRAME_POINTER if !PPC && !S390 && !MICROBLAZE
  917. help
  918. Provide stacktrace filter for fault-injection capabilities
  919. config LATENCYTOP
  920. bool "Latency measuring infrastructure"
  921. depends on HAVE_LATENCYTOP_SUPPORT
  922. depends on DEBUG_KERNEL
  923. depends on STACKTRACE_SUPPORT
  924. depends on PROC_FS
  925. select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE
  926. select KALLSYMS
  927. select KALLSYMS_ALL
  928. select STACKTRACE
  929. select SCHEDSTATS
  930. select SCHED_DEBUG
  931. help
  932. Enable this option if you want to use the LatencyTOP tool
  933. to find out which userspace is blocking on what kernel operations.
  934. config SYSCTL_SYSCALL_CHECK
  935. bool "Sysctl checks"
  936. depends on SYSCTL
  937. ---help---
  938. sys_sysctl uses binary paths that have been found challenging
  939. to properly maintain and use. This enables checks that help
  940. you to keep things correct.
  941. source mm/Kconfig.debug
  942. source kernel/trace/Kconfig
  943. config PROVIDE_OHCI1394_DMA_INIT
  944. bool "Remote debugging over FireWire early on boot"
  945. depends on PCI && X86
  946. help
  947. If you want to debug problems which hang or crash the kernel early
  948. on boot and the crashing machine has a FireWire port, you can use
  949. this feature to remotely access the memory of the crashed machine
  950. over FireWire. This employs remote DMA as part of the OHCI1394
  951. specification which is now the standard for FireWire controllers.
  952. With remote DMA, you can monitor the printk buffer remotely using
  953. firescope and access all memory below 4GB using fireproxy from gdb.
  954. Even controlling a kernel debugger is possible using remote DMA.
  955. Usage:
  956. If ohci1394_dma=early is used as boot parameter, it will initialize
  957. all OHCI1394 controllers which are found in the PCI config space.
  958. As all changes to the FireWire bus such as enabling and disabling
  959. devices cause a bus reset and thereby disable remote DMA for all
  960. devices, be sure to have the cable plugged and FireWire enabled on
  961. the debugging host before booting the debug target for debugging.
  962. This code (~1k) is freed after boot. By then, the firewire stack
  963. in charge of the OHCI-1394 controllers should be used instead.
  964. See Documentation/debugging-via-ohci1394.txt for more information.
  965. config FIREWIRE_OHCI_REMOTE_DMA
  966. bool "Remote debugging over FireWire with firewire-ohci"
  967. depends on FIREWIRE_OHCI
  968. help
  969. This option lets you use the FireWire bus for remote debugging
  970. with help of the firewire-ohci driver. It enables unfiltered
  971. remote DMA in firewire-ohci.
  972. See Documentation/debugging-via-ohci1394.txt for more information.
  973. If unsure, say N.
  974. config BUILD_DOCSRC
  975. bool "Build targets in Documentation/ tree"
  976. depends on HEADERS_CHECK
  977. help
  978. This option attempts to build objects from the source files in the
  979. kernel Documentation/ tree.
  980. Say N if you are unsure.
  981. config DYNAMIC_DEBUG
  982. bool "Enable dynamic printk() support"
  983. default n
  984. depends on PRINTK
  985. depends on DEBUG_FS
  986. help
  987. Compiles debug level messages into the kernel, which would not
  988. otherwise be available at runtime. These messages can then be
  989. enabled/disabled based on various levels of scope - per source file,
  990. function, module, format string, and line number. This mechanism
  991. implicitly enables all pr_debug() and dev_dbg() calls. The impact of
  992. this compile option is a larger kernel text size of about 2%.
  993. Usage:
  994. Dynamic debugging is controlled via the 'dynamic_debug/control' file,
  995. which is contained in the 'debugfs' filesystem. Thus, the debugfs
  996. filesystem must first be mounted before making use of this feature.
  997. We refer the control file as: <debugfs>/dynamic_debug/control. This
  998. file contains a list of the debug statements that can be enabled. The
  999. format for each line of the file is:
  1000. filename:lineno [module]function flags format
  1001. filename : source file of the debug statement
  1002. lineno : line number of the debug statement
  1003. module : module that contains the debug statement
  1004. function : function that contains the debug statement
  1005. flags : 'p' means the line is turned 'on' for printing
  1006. format : the format used for the debug statement
  1007. From a live system:
  1008. nullarbor:~ # cat <debugfs>/dynamic_debug/control
  1009. # filename:lineno [module]function flags format
  1010. fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012"
  1011. fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012"
  1012. fs/aio.c:1770 [aio]sys_io_cancel - "calling\040cancel\012"
  1013. Example usage:
  1014. // enable the message at line 1603 of file svcsock.c
  1015. nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
  1016. <debugfs>/dynamic_debug/control
  1017. // enable all the messages in file svcsock.c
  1018. nullarbor:~ # echo -n 'file svcsock.c +p' >
  1019. <debugfs>/dynamic_debug/control
  1020. // enable all the messages in the NFS server module
  1021. nullarbor:~ # echo -n 'module nfsd +p' >
  1022. <debugfs>/dynamic_debug/control
  1023. // enable all 12 messages in the function svc_process()
  1024. nullarbor:~ # echo -n 'func svc_process +p' >
  1025. <debugfs>/dynamic_debug/control
  1026. // disable all 12 messages in the function svc_process()
  1027. nullarbor:~ # echo -n 'func svc_process -p' >
  1028. <debugfs>/dynamic_debug/control
  1029. See Documentation/dynamic-debug-howto.txt for additional information.
  1030. config DMA_API_DEBUG
  1031. bool "Enable debugging of DMA-API usage"
  1032. depends on HAVE_DMA_API_DEBUG
  1033. help
  1034. Enable this option to debug the use of the DMA API by device drivers.
  1035. With this option you will be able to detect common bugs in device
  1036. drivers like double-freeing of DMA mappings or freeing mappings that
  1037. were never allocated.
  1038. This option causes a performance degredation. Use only if you want
  1039. to debug device drivers. If unsure, say N.
  1040. config ATOMIC64_SELFTEST
  1041. bool "Perform an atomic64_t self-test at boot"
  1042. help
  1043. Enable this option to test the atomic64_t functions at boot.
  1044. If unsure, say N.
  1045. config ASYNC_RAID6_TEST
  1046. tristate "Self test for hardware accelerated raid6 recovery"
  1047. depends on ASYNC_RAID6_RECOV
  1048. select ASYNC_MEMCPY
  1049. ---help---
  1050. This is a one-shot self test that permutes through the
  1051. recovery of all the possible two disk failure scenarios for a
  1052. N-disk array. Recovery is performed with the asynchronous
  1053. raid6 recovery routines, and will optionally use an offload
  1054. engine if one is available.
  1055. If unsure, say N.
  1056. source "samples/Kconfig"
  1057. source "lib/Kconfig.kgdb"
  1058. source "lib/Kconfig.kmemcheck"
  1059. config TEST_KSTRTOX
  1060. tristate "Test kstrto*() family of functions at runtime"