Kconfig.debug 44 KB

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