Kconfig.debug 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. config PRINTK_TIME
  2. bool "Show timing information on printks"
  3. help
  4. Selecting this option causes timing information to be
  5. included in printk output. This allows you to measure
  6. the interval between kernel operations, including bootup
  7. operations. This is useful for identifying long delays
  8. in kernel startup.
  9. config DEBUG_KERNEL
  10. bool "Kernel debugging"
  11. help
  12. Say Y here if you are developing drivers or trying to debug and
  13. identify kernel problems.
  14. config MAGIC_SYSRQ
  15. bool "Magic SysRq key"
  16. depends on DEBUG_KERNEL && !UML
  17. help
  18. If you say Y here, you will have some control over the system even
  19. if the system crashes for example during kernel debugging (e.g., you
  20. will be able to flush the buffer cache to disk, reboot the system
  21. immediately or dump some status information). This is accomplished
  22. by pressing various keys while holding SysRq (Alt+PrintScreen). It
  23. also works on a serial console (on PC hardware at least), if you
  24. send a BREAK and then within 5 seconds a command keypress. The
  25. keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
  26. unless you really know what this hack does.
  27. config LOG_BUF_SHIFT
  28. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL
  29. range 12 21
  30. default 17 if ARCH_S390
  31. default 16 if X86_NUMAQ || IA64
  32. default 15 if SMP
  33. default 14
  34. help
  35. Select kernel log buffer size as a power of 2.
  36. Defaults and Examples:
  37. 17 => 128 KB for S/390
  38. 16 => 64 KB for x86 NUMAQ or IA-64
  39. 15 => 32 KB for SMP
  40. 14 => 16 KB for uniprocessor
  41. 13 => 8 KB
  42. 12 => 4 KB
  43. config DETECT_SOFTLOCKUP
  44. bool "Detect Soft Lockups"
  45. depends on DEBUG_KERNEL
  46. default y
  47. help
  48. Say Y here to enable the kernel to detect "soft lockups",
  49. which are bugs that cause the kernel to loop in kernel
  50. mode for more than 10 seconds, without giving other tasks a
  51. chance to run.
  52. When a soft-lockup is detected, the kernel will print the
  53. current stack trace (which you should report), but the
  54. system will stay locked up. This feature has negligible
  55. overhead.
  56. (Note that "hard lockups" are separate type of bugs that
  57. can be detected via the NMI-watchdog, on platforms that
  58. support it.)
  59. config SCHEDSTATS
  60. bool "Collect scheduler statistics"
  61. depends on DEBUG_KERNEL && PROC_FS
  62. help
  63. If you say Y here, additional code will be inserted into the
  64. scheduler and related routines to collect statistics about
  65. scheduler behavior and provide them in /proc/schedstat. These
  66. stats may be useful for both tuning and debugging the scheduler
  67. If you aren't debugging the scheduler or trying to tune a specific
  68. application, you can say N to avoid the very slight overhead
  69. this adds.
  70. config DEBUG_SLAB
  71. bool "Debug memory allocations"
  72. depends on DEBUG_KERNEL
  73. help
  74. Say Y here to have the kernel do limited verification on memory
  75. allocation as well as poisoning memory on free to catch use of freed
  76. memory. This can make kmalloc/kfree-intensive workloads much slower.
  77. config DEBUG_PREEMPT
  78. bool "Debug preemptible kernel"
  79. depends on DEBUG_KERNEL && PREEMPT
  80. default y
  81. help
  82. If you say Y here then the kernel will use a debug variant of the
  83. commonly used smp_processor_id() function and will print warnings
  84. if kernel code uses it in a preemption-unsafe way. Also, the kernel
  85. will detect preemption count underflows.
  86. config DEBUG_SPINLOCK
  87. bool "Spinlock debugging"
  88. depends on DEBUG_KERNEL
  89. help
  90. Say Y here and build SMP to catch missing spinlock initialization
  91. and certain other kinds of spinlock errors commonly made. This is
  92. best used in conjunction with the NMI watchdog so that spinlock
  93. deadlocks are also debuggable.
  94. config DEBUG_SPINLOCK_SLEEP
  95. bool "Sleep-inside-spinlock checking"
  96. depends on DEBUG_KERNEL
  97. help
  98. If you say Y here, various routines which may sleep will become very
  99. noisy if they are called with a spinlock held.
  100. config DEBUG_KOBJECT
  101. bool "kobject debugging"
  102. depends on DEBUG_KERNEL
  103. help
  104. If you say Y here, some extra kobject debugging messages will be sent
  105. to the syslog.
  106. config DEBUG_HIGHMEM
  107. bool "Highmem debugging"
  108. depends on DEBUG_KERNEL && HIGHMEM
  109. help
  110. This options enables addition error checking for high memory systems.
  111. Disable for production systems.
  112. config DEBUG_BUGVERBOSE
  113. bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED
  114. depends on BUG
  115. depends on ARM || ARM26 || M32R || M68K || SPARC32 || SPARC64 || (X86 && !X86_64) || FRV
  116. default !EMBEDDED
  117. help
  118. Say Y here to make BUG() panics output the file name and line number
  119. of the BUG call as well as the EIP and oops trace. This aids
  120. debugging but costs about 70-100K of memory.
  121. config DEBUG_INFO
  122. bool "Compile the kernel with debug info"
  123. depends on DEBUG_KERNEL
  124. help
  125. If you say Y here the resulting kernel image will include
  126. debugging info resulting in a larger kernel image.
  127. Say Y here only if you plan to debug the kernel.
  128. If unsure, say N.
  129. config DEBUG_IOREMAP
  130. bool "Enable ioremap() debugging"
  131. depends on DEBUG_KERNEL && PARISC
  132. help
  133. Enabling this option will cause the kernel to distinguish between
  134. ioremapped and physical addresses. It will print a backtrace (at
  135. most one every 10 seconds), hopefully allowing you to see which
  136. drivers need work. Fixing all these problems is a prerequisite
  137. for turning on USE_HPPA_IOREMAP. The warnings are harmless;
  138. the kernel has enough information to fix the broken drivers
  139. automatically, but we'd like to make it more efficient by not
  140. having to do that.
  141. config DEBUG_FS
  142. bool "Debug Filesystem"
  143. depends on DEBUG_KERNEL && SYSFS
  144. help
  145. debugfs is a virtual file system that kernel developers use to put
  146. debugging files into. Enable this option to be able to read and
  147. write to these files.
  148. If unsure, say N.
  149. config FRAME_POINTER
  150. bool "Compile the kernel with frame pointers"
  151. depends on DEBUG_KERNEL && (X86 || CRIS || M68K || M68KNOMMU || FRV || UML)
  152. default y if DEBUG_INFO && UML
  153. help
  154. If you say Y here the resulting kernel image will be slightly larger
  155. and slower, but it might give very useful debugging information
  156. on some architectures or you use external debuggers.
  157. If you don't debug the kernel, you can say N.