Kconfig.debug 42 KB

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