Kconfig.debug 44 KB

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