Kconfig.debug 42 KB

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