Kconfig.debug 42 KB

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