Kconfig.debug 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  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 UNUSED_SYMBOLS
  48. bool "Enable unused/obsolete exported symbols"
  49. default y if X86
  50. help
  51. Unused but exported symbols make the kernel needlessly bigger. For
  52. that reason most of these unused exports will soon be removed. This
  53. option is provided temporarily to provide a transition period in case
  54. some external kernel module needs one of these symbols anyway. If you
  55. encounter such a case in your module, consider if you are actually
  56. using the right API. (rationale: since nobody in the kernel is using
  57. this in a module, there is a pretty good chance it's actually the
  58. wrong interface to use). If you really need the symbol, please send a
  59. mail to the linux kernel mailing list mentioning the symbol and why
  60. you really need it, and what the merge plan to the mainline kernel for
  61. your module is.
  62. config DEBUG_FS
  63. bool "Debug Filesystem"
  64. depends on SYSFS
  65. help
  66. debugfs is a virtual file system that kernel developers use to put
  67. debugging files into. Enable this option to be able to read and
  68. write to these files.
  69. If unsure, say N.
  70. config HEADERS_CHECK
  71. bool "Run 'make headers_check' when building vmlinux"
  72. depends on !UML
  73. help
  74. This option will extract the user-visible kernel headers whenever
  75. building the kernel, and will run basic sanity checks on them to
  76. ensure that exported files do not attempt to include files which
  77. were not exported, etc.
  78. If you're making modifications to header files which are
  79. relevant for userspace, say 'Y', and check the headers
  80. exported to $(INSTALL_HDR_PATH) (usually 'usr/include' in
  81. your build tree), to make sure they're suitable.
  82. config DEBUG_SECTION_MISMATCH
  83. bool "Enable full Section mismatch analysis"
  84. depends on UNDEFINED
  85. # This option is on purpose disabled for now.
  86. # It will be enabled when we are down to a resonable number
  87. # of section mismatch warnings (< 10 for an allyesconfig build)
  88. help
  89. The section mismatch analysis checks if there are illegal
  90. references from one section to another section.
  91. Linux will during link or during runtime drop some sections
  92. and any use of code/data previously in these sections will
  93. most likely result in an oops.
  94. In the code functions and variables are annotated with
  95. __init, __devinit etc. (see full list in include/linux/init.h)
  96. which results in the code/data being placed in specific sections.
  97. The section mismatch analysis is always done after a full
  98. kernel build but enabling this option will in addition
  99. do the following:
  100. - Add the option -fno-inline-functions-called-once to gcc
  101. When inlining a function annotated __init in a non-init
  102. function we would lose the section information and thus
  103. the analysis would not catch the illegal reference.
  104. This option tells gcc to inline less but will also
  105. result in a larger kernel.
  106. - Run the section mismatch analysis for each module/built-in.o
  107. When we run the section mismatch analysis on vmlinux.o we
  108. lose valueble information about where the mismatch was
  109. introduced.
  110. Running the analysis for each module/built-in.o file
  111. will tell where the mismatch happens much closer to the
  112. source. The drawback is that we will report the same
  113. mismatch at least twice.
  114. - Enable verbose reporting from modpost to help solving
  115. the section mismatches reported.
  116. config DEBUG_KERNEL
  117. bool "Kernel debugging"
  118. help
  119. Say Y here if you are developing drivers or trying to debug and
  120. identify kernel problems.
  121. config DEBUG_SHIRQ
  122. bool "Debug shared IRQ handlers"
  123. depends on DEBUG_KERNEL && GENERIC_HARDIRQS
  124. help
  125. Enable this to generate a spurious interrupt as soon as a shared
  126. interrupt handler is registered, and just before one is deregistered.
  127. Drivers ought to be able to handle interrupts coming in at those
  128. points; some don't and need to be caught.
  129. config DETECT_SOFTLOCKUP
  130. bool "Detect Soft Lockups"
  131. depends on DEBUG_KERNEL && !S390
  132. default y
  133. help
  134. Say Y here to enable the kernel to detect "soft lockups",
  135. which are bugs that cause the kernel to loop in kernel
  136. mode for more than 10 seconds, without giving other tasks a
  137. chance to run.
  138. When a soft-lockup is detected, the kernel will print the
  139. current stack trace (which you should report), but the
  140. system will stay locked up. This feature has negligible
  141. overhead.
  142. (Note that "hard lockups" are separate type of bugs that
  143. can be detected via the NMI-watchdog, on platforms that
  144. support it.)
  145. config SCHED_DEBUG
  146. bool "Collect scheduler debugging info"
  147. depends on DEBUG_KERNEL && PROC_FS
  148. default y
  149. help
  150. If you say Y here, the /proc/sched_debug file will be provided
  151. that can help debug the scheduler. The runtime overhead of this
  152. option is minimal.
  153. config SCHEDSTATS
  154. bool "Collect scheduler statistics"
  155. depends on DEBUG_KERNEL && PROC_FS
  156. help
  157. If you say Y here, additional code will be inserted into the
  158. scheduler and related routines to collect statistics about
  159. scheduler behavior and provide them in /proc/schedstat. These
  160. stats may be useful for both tuning and debugging the scheduler
  161. If you aren't debugging the scheduler or trying to tune a specific
  162. application, you can say N to avoid the very slight overhead
  163. this adds.
  164. config TIMER_STATS
  165. bool "Collect kernel timers statistics"
  166. depends on DEBUG_KERNEL && PROC_FS
  167. help
  168. If you say Y here, additional code will be inserted into the
  169. timer routines to collect statistics about kernel timers being
  170. reprogrammed. The statistics can be read from /proc/timer_stats.
  171. The statistics collection is started by writing 1 to /proc/timer_stats,
  172. writing 0 stops it. This feature is useful to collect information
  173. about timer usage patterns in kernel and userspace. This feature
  174. is lightweight if enabled in the kernel config but not activated
  175. (it defaults to deactivated on bootup and will only be activated
  176. if some application like powertop activates it explicitly).
  177. config DEBUG_OBJECTS
  178. bool "Debug object operations"
  179. depends on DEBUG_KERNEL
  180. help
  181. If you say Y here, additional code will be inserted into the
  182. kernel to track the life time of various objects and validate
  183. the operations on those objects.
  184. config DEBUG_OBJECTS_SELFTEST
  185. bool "Debug objects selftest"
  186. depends on DEBUG_OBJECTS
  187. help
  188. This enables the selftest of the object debug code.
  189. config DEBUG_OBJECTS_FREE
  190. bool "Debug objects in freed memory"
  191. depends on DEBUG_OBJECTS
  192. help
  193. This enables checks whether a k/v free operation frees an area
  194. which contains an object which has not been deactivated
  195. properly. This can make kmalloc/kfree-intensive workloads
  196. much slower.
  197. config DEBUG_OBJECTS_TIMERS
  198. bool "Debug timer objects"
  199. depends on DEBUG_OBJECTS
  200. help
  201. If you say Y here, additional code will be inserted into the
  202. timer routines to track the life time of timer objects and
  203. validate the timer operations.
  204. config DEBUG_SLAB
  205. bool "Debug slab memory allocations"
  206. depends on DEBUG_KERNEL && SLAB
  207. help
  208. Say Y here to have the kernel do limited verification on memory
  209. allocation as well as poisoning memory on free to catch use of freed
  210. memory. This can make kmalloc/kfree-intensive workloads much slower.
  211. config DEBUG_SLAB_LEAK
  212. bool "Memory leak debugging"
  213. depends on DEBUG_SLAB
  214. config SLUB_DEBUG_ON
  215. bool "SLUB debugging on by default"
  216. depends on SLUB && SLUB_DEBUG
  217. default n
  218. help
  219. Boot with debugging on by default. SLUB boots by default with
  220. the runtime debug capabilities switched off. Enabling this is
  221. equivalent to specifying the "slub_debug" parameter on boot.
  222. There is no support for more fine grained debug control like
  223. possible with slub_debug=xxx. SLUB debugging may be switched
  224. off in a kernel built with CONFIG_SLUB_DEBUG_ON by specifying
  225. "slub_debug=-".
  226. config SLUB_STATS
  227. default n
  228. bool "Enable SLUB performance statistics"
  229. depends on SLUB && SLUB_DEBUG && SYSFS
  230. help
  231. SLUB statistics are useful to debug SLUBs allocation behavior in
  232. order find ways to optimize the allocator. This should never be
  233. enabled for production use since keeping statistics slows down
  234. the allocator by a few percentage points. The slabinfo command
  235. supports the determination of the most active slabs to figure
  236. out which slabs are relevant to a particular load.
  237. Try running: slabinfo -DA
  238. config DEBUG_PREEMPT
  239. bool "Debug preemptible kernel"
  240. depends on DEBUG_KERNEL && PREEMPT && (TRACE_IRQFLAGS_SUPPORT || PPC64)
  241. default y
  242. help
  243. If you say Y here then the kernel will use a debug variant of the
  244. commonly used smp_processor_id() function and will print warnings
  245. if kernel code uses it in a preemption-unsafe way. Also, the kernel
  246. will detect preemption count underflows.
  247. config DEBUG_RT_MUTEXES
  248. bool "RT Mutex debugging, deadlock detection"
  249. depends on DEBUG_KERNEL && RT_MUTEXES
  250. help
  251. This allows rt mutex semantics violations and rt mutex related
  252. deadlocks (lockups) to be detected and reported automatically.
  253. config DEBUG_PI_LIST
  254. bool
  255. default y
  256. depends on DEBUG_RT_MUTEXES
  257. config RT_MUTEX_TESTER
  258. bool "Built-in scriptable tester for rt-mutexes"
  259. depends on DEBUG_KERNEL && RT_MUTEXES
  260. help
  261. This option enables a rt-mutex tester.
  262. config DEBUG_SPINLOCK
  263. bool "Spinlock and rw-lock debugging: basic checks"
  264. depends on DEBUG_KERNEL
  265. help
  266. Say Y here and build SMP to catch missing spinlock initialization
  267. and certain other kinds of spinlock errors commonly made. This is
  268. best used in conjunction with the NMI watchdog so that spinlock
  269. deadlocks are also debuggable.
  270. config DEBUG_MUTEXES
  271. bool "Mutex debugging: basic checks"
  272. depends on DEBUG_KERNEL
  273. help
  274. This feature allows mutex semantics violations to be detected and
  275. reported.
  276. config DEBUG_LOCK_ALLOC
  277. bool "Lock debugging: detect incorrect freeing of live locks"
  278. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  279. select DEBUG_SPINLOCK
  280. select DEBUG_MUTEXES
  281. select LOCKDEP
  282. help
  283. This feature will check whether any held lock (spinlock, rwlock,
  284. mutex or rwsem) is incorrectly freed by the kernel, via any of the
  285. memory-freeing routines (kfree(), kmem_cache_free(), free_pages(),
  286. vfree(), etc.), whether a live lock is incorrectly reinitialized via
  287. spin_lock_init()/mutex_init()/etc., or whether there is any lock
  288. held during task exit.
  289. config PROVE_LOCKING
  290. bool "Lock debugging: prove locking correctness"
  291. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  292. select LOCKDEP
  293. select DEBUG_SPINLOCK
  294. select DEBUG_MUTEXES
  295. select DEBUG_LOCK_ALLOC
  296. default n
  297. help
  298. This feature enables the kernel to prove that all locking
  299. that occurs in the kernel runtime is mathematically
  300. correct: that under no circumstance could an arbitrary (and
  301. not yet triggered) combination of observed locking
  302. sequences (on an arbitrary number of CPUs, running an
  303. arbitrary number of tasks and interrupt contexts) cause a
  304. deadlock.
  305. In short, this feature enables the kernel to report locking
  306. related deadlocks before they actually occur.
  307. The proof does not depend on how hard and complex a
  308. deadlock scenario would be to trigger: how many
  309. participant CPUs, tasks and irq-contexts would be needed
  310. for it to trigger. The proof also does not depend on
  311. timing: if a race and a resulting deadlock is possible
  312. theoretically (no matter how unlikely the race scenario
  313. is), it will be proven so and will immediately be
  314. reported by the kernel (once the event is observed that
  315. makes the deadlock theoretically possible).
  316. If a deadlock is impossible (i.e. the locking rules, as
  317. observed by the kernel, are mathematically correct), the
  318. kernel reports nothing.
  319. NOTE: this feature can also be enabled for rwlocks, mutexes
  320. and rwsems - in which case all dependencies between these
  321. different locking variants are observed and mapped too, and
  322. the proof of observed correctness is also maintained for an
  323. arbitrary combination of these separate locking variants.
  324. For more details, see Documentation/lockdep-design.txt.
  325. config LOCKDEP
  326. bool
  327. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  328. select STACKTRACE
  329. select FRAME_POINTER if !X86 && !MIPS
  330. select KALLSYMS
  331. select KALLSYMS_ALL
  332. config LOCK_STAT
  333. bool "Lock usage statistics"
  334. depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
  335. select LOCKDEP
  336. select DEBUG_SPINLOCK
  337. select DEBUG_MUTEXES
  338. select DEBUG_LOCK_ALLOC
  339. default n
  340. help
  341. This feature enables tracking lock contention points
  342. For more details, see Documentation/lockstat.txt
  343. config DEBUG_LOCKDEP
  344. bool "Lock dependency engine debugging"
  345. depends on DEBUG_KERNEL && LOCKDEP
  346. help
  347. If you say Y here, the lock dependency engine will do
  348. additional runtime checks to debug itself, at the price
  349. of more runtime overhead.
  350. config TRACE_IRQFLAGS
  351. depends on DEBUG_KERNEL
  352. bool
  353. default y
  354. depends on TRACE_IRQFLAGS_SUPPORT
  355. depends on PROVE_LOCKING
  356. config DEBUG_SPINLOCK_SLEEP
  357. bool "Spinlock debugging: sleep-inside-spinlock checking"
  358. depends on DEBUG_KERNEL
  359. help
  360. If you say Y here, various routines which may sleep will become very
  361. noisy if they are called with a spinlock held.
  362. config DEBUG_LOCKING_API_SELFTESTS
  363. bool "Locking API boot-time self-tests"
  364. depends on DEBUG_KERNEL
  365. help
  366. Say Y here if you want the kernel to run a short self-test during
  367. bootup. The self-test checks whether common types of locking bugs
  368. are detected by debugging mechanisms or not. (if you disable
  369. lock debugging then those bugs wont be detected of course.)
  370. The following locking APIs are covered: spinlocks, rwlocks,
  371. mutexes and rwsems.
  372. config STACKTRACE
  373. bool
  374. depends on DEBUG_KERNEL
  375. depends on STACKTRACE_SUPPORT
  376. config DEBUG_KOBJECT
  377. bool "kobject debugging"
  378. depends on DEBUG_KERNEL
  379. help
  380. If you say Y here, some extra kobject debugging messages will be sent
  381. to the syslog.
  382. config DEBUG_HIGHMEM
  383. bool "Highmem debugging"
  384. depends on DEBUG_KERNEL && HIGHMEM
  385. help
  386. This options enables addition error checking for high memory systems.
  387. Disable for production systems.
  388. config DEBUG_BUGVERBOSE
  389. bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED
  390. depends on BUG
  391. depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \
  392. FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300
  393. default !EMBEDDED
  394. help
  395. Say Y here to make BUG() panics output the file name and line number
  396. of the BUG call as well as the EIP and oops trace. This aids
  397. debugging but costs about 70-100K of memory.
  398. config DEBUG_INFO
  399. bool "Compile the kernel with debug info"
  400. depends on DEBUG_KERNEL
  401. help
  402. If you say Y here the resulting kernel image will include
  403. debugging info resulting in a larger kernel image.
  404. This adds debug symbols to the kernel and modules (gcc -g), and
  405. is needed if you intend to use kernel crashdump or binary object
  406. tools like crash, kgdb, LKCD, gdb, etc on the kernel.
  407. Say Y here only if you plan to debug the kernel.
  408. If unsure, say N.
  409. config DEBUG_VM
  410. bool "Debug VM"
  411. depends on DEBUG_KERNEL
  412. help
  413. Enable this to turn on extended checks in the virtual-memory system
  414. that may impact performance.
  415. If unsure, say N.
  416. config DEBUG_WRITECOUNT
  417. bool "Debug filesystem writers count"
  418. depends on DEBUG_KERNEL
  419. help
  420. Enable this to catch wrong use of the writers count in struct
  421. vfsmount. This will increase the size of each file struct by
  422. 32 bits.
  423. If unsure, say N.
  424. config DEBUG_LIST
  425. bool "Debug linked list manipulation"
  426. depends on DEBUG_KERNEL
  427. help
  428. Enable this to turn on extended checks in the linked-list
  429. walking routines.
  430. If unsure, say N.
  431. config DEBUG_SG
  432. bool "Debug SG table operations"
  433. depends on DEBUG_KERNEL
  434. help
  435. Enable this to turn on checks on scatter-gather tables. This can
  436. help find problems with drivers that do not properly initialize
  437. their sg tables.
  438. If unsure, say N.
  439. config FRAME_POINTER
  440. bool "Compile the kernel with frame pointers"
  441. depends on DEBUG_KERNEL && \
  442. (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \
  443. AVR32 || SUPERH || BLACKFIN || MN10300)
  444. default y if DEBUG_INFO && UML
  445. help
  446. If you say Y here the resulting kernel image will be slightly larger
  447. and slower, but it might give very useful debugging information on
  448. some architectures or if you use external debuggers.
  449. If you don't debug the kernel, you can say N.
  450. config BOOT_PRINTK_DELAY
  451. bool "Delay each boot printk message by N milliseconds"
  452. depends on DEBUG_KERNEL && PRINTK && GENERIC_CALIBRATE_DELAY
  453. help
  454. This build option allows you to read kernel boot messages
  455. by inserting a short delay after each one. The delay is
  456. specified in milliseconds on the kernel command line,
  457. using "boot_delay=N".
  458. It is likely that you would also need to use "lpj=M" to preset
  459. the "loops per jiffie" value.
  460. See a previous boot log for the "lpj" value to use for your
  461. system, and then set "lpj=M" before setting "boot_delay=N".
  462. NOTE: Using this option may adversely affect SMP systems.
  463. I.e., processors other than the first one may not boot up.
  464. BOOT_PRINTK_DELAY also may cause DETECT_SOFTLOCKUP to detect
  465. what it believes to be lockup conditions.
  466. config RCU_TORTURE_TEST
  467. tristate "torture tests for RCU"
  468. depends on DEBUG_KERNEL
  469. depends on m
  470. default n
  471. help
  472. This option provides a kernel module that runs torture tests
  473. on the RCU infrastructure. The kernel module may be built
  474. after the fact on the running kernel to be tested, if desired.
  475. Say M if you want the RCU torture tests to build as a module.
  476. Say N if you are unsure.
  477. config KPROBES_SANITY_TEST
  478. bool "Kprobes sanity tests"
  479. depends on DEBUG_KERNEL
  480. depends on KPROBES
  481. default n
  482. help
  483. This option provides for testing basic kprobes functionality on
  484. boot. A sample kprobe, jprobe and kretprobe are inserted and
  485. verified for functionality.
  486. Say N if you are unsure.
  487. config BACKTRACE_SELF_TEST
  488. tristate "Self test for the backtrace code"
  489. depends on DEBUG_KERNEL
  490. default n
  491. help
  492. This option provides a kernel module that can be used to test
  493. the kernel stack backtrace code. This option is not useful
  494. for distributions or general kernels, but only for kernel
  495. developers working on architecture code.
  496. Say N if you are unsure.
  497. config LKDTM
  498. tristate "Linux Kernel Dump Test Tool Module"
  499. depends on DEBUG_KERNEL
  500. depends on KPROBES
  501. depends on BLOCK
  502. default n
  503. help
  504. This module enables testing of the different dumping mechanisms by
  505. inducing system failures at predefined crash points.
  506. If you don't need it: say N
  507. Choose M here to compile this code as a module. The module will be
  508. called lkdtm.
  509. Documentation on how to use the module can be found in
  510. drivers/misc/lkdtm.c
  511. config FAULT_INJECTION
  512. bool "Fault-injection framework"
  513. depends on DEBUG_KERNEL
  514. help
  515. Provide fault-injection framework.
  516. For more details, see Documentation/fault-injection/.
  517. config FAILSLAB
  518. bool "Fault-injection capability for kmalloc"
  519. depends on FAULT_INJECTION
  520. help
  521. Provide fault-injection capability for kmalloc.
  522. config FAIL_PAGE_ALLOC
  523. bool "Fault-injection capabilitiy for alloc_pages()"
  524. depends on FAULT_INJECTION
  525. help
  526. Provide fault-injection capability for alloc_pages().
  527. config FAIL_MAKE_REQUEST
  528. bool "Fault-injection capability for disk IO"
  529. depends on FAULT_INJECTION
  530. help
  531. Provide fault-injection capability for disk IO.
  532. config FAULT_INJECTION_DEBUG_FS
  533. bool "Debugfs entries for fault-injection capabilities"
  534. depends on FAULT_INJECTION && SYSFS && DEBUG_FS
  535. help
  536. Enable configuration of fault-injection capabilities via debugfs.
  537. config FAULT_INJECTION_STACKTRACE_FILTER
  538. bool "stacktrace filter for fault-injection capabilities"
  539. depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT
  540. depends on !X86_64
  541. select STACKTRACE
  542. select FRAME_POINTER
  543. help
  544. Provide stacktrace filter for fault-injection capabilities
  545. config LATENCYTOP
  546. bool "Latency measuring infrastructure"
  547. select FRAME_POINTER if !MIPS
  548. select KALLSYMS
  549. select KALLSYMS_ALL
  550. select STACKTRACE
  551. select SCHEDSTATS
  552. select SCHED_DEBUG
  553. depends on HAVE_LATENCYTOP_SUPPORT
  554. help
  555. Enable this option if you want to use the LatencyTOP tool
  556. to find out which userspace is blocking on what kernel operations.
  557. config PROVIDE_OHCI1394_DMA_INIT
  558. bool "Remote debugging over FireWire early on boot"
  559. depends on PCI && X86
  560. help
  561. If you want to debug problems which hang or crash the kernel early
  562. on boot and the crashing machine has a FireWire port, you can use
  563. this feature to remotely access the memory of the crashed machine
  564. over FireWire. This employs remote DMA as part of the OHCI1394
  565. specification which is now the standard for FireWire controllers.
  566. With remote DMA, you can monitor the printk buffer remotely using
  567. firescope and access all memory below 4GB using fireproxy from gdb.
  568. Even controlling a kernel debugger is possible using remote DMA.
  569. Usage:
  570. If ohci1394_dma=early is used as boot parameter, it will initialize
  571. all OHCI1394 controllers which are found in the PCI config space.
  572. As all changes to the FireWire bus such as enabling and disabling
  573. devices cause a bus reset and thereby disable remote DMA for all
  574. devices, be sure to have the cable plugged and FireWire enabled on
  575. the debugging host before booting the debug target for debugging.
  576. This code (~1k) is freed after boot. By then, the firewire stack
  577. in charge of the OHCI-1394 controllers should be used instead.
  578. See Documentation/debugging-via-ohci1394.txt for more information.
  579. config FIREWIRE_OHCI_REMOTE_DMA
  580. bool "Remote debugging over FireWire with firewire-ohci"
  581. depends on FIREWIRE_OHCI
  582. help
  583. This option lets you use the FireWire bus for remote debugging
  584. with help of the firewire-ohci driver. It enables unfiltered
  585. remote DMA in firewire-ohci.
  586. See Documentation/debugging-via-ohci1394.txt for more information.
  587. If unsure, say N.
  588. source "samples/Kconfig"
  589. source "lib/Kconfig.kgdb"