Kconfig.debug 22 KB

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