Kconfig.debug 42 KB

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