Kconfig.debug 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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 SCHEDSTATS
  44. bool "Collect scheduler statistics"
  45. depends on DEBUG_KERNEL && PROC_FS
  46. help
  47. If you say Y here, additional code will be inserted into the
  48. scheduler and related routines to collect statistics about
  49. scheduler behavior and provide them in /proc/schedstat. These
  50. stats may be useful for both tuning and debugging the scheduler
  51. If you aren't debugging the scheduler or trying to tune a specific
  52. application, you can say N to avoid the very slight overhead
  53. this adds.
  54. config DEBUG_SLAB
  55. bool "Debug memory allocations"
  56. depends on DEBUG_KERNEL
  57. help
  58. Say Y here to have the kernel do limited verification on memory
  59. allocation as well as poisoning memory on free to catch use of freed
  60. memory. This can make kmalloc/kfree-intensive workloads much slower.
  61. config DEBUG_PREEMPT
  62. bool "Debug preemptible kernel"
  63. depends on DEBUG_KERNEL && PREEMPT
  64. default y
  65. help
  66. If you say Y here then the kernel will use a debug variant of the
  67. commonly used smp_processor_id() function and will print warnings
  68. if kernel code uses it in a preemption-unsafe way. Also, the kernel
  69. will detect preemption count underflows.
  70. config DEBUG_SPINLOCK
  71. bool "Spinlock debugging"
  72. depends on DEBUG_KERNEL
  73. help
  74. Say Y here and build SMP to catch missing spinlock initialization
  75. and certain other kinds of spinlock errors commonly made. This is
  76. best used in conjunction with the NMI watchdog so that spinlock
  77. deadlocks are also debuggable.
  78. config DEBUG_SPINLOCK_SLEEP
  79. bool "Sleep-inside-spinlock checking"
  80. depends on DEBUG_KERNEL
  81. help
  82. If you say Y here, various routines which may sleep will become very
  83. noisy if they are called with a spinlock held.
  84. config DEBUG_KOBJECT
  85. bool "kobject debugging"
  86. depends on DEBUG_KERNEL
  87. help
  88. If you say Y here, some extra kobject debugging messages will be sent
  89. to the syslog.
  90. config DEBUG_HIGHMEM
  91. bool "Highmem debugging"
  92. depends on DEBUG_KERNEL && HIGHMEM
  93. help
  94. This options enables addition error checking for high memory systems.
  95. Disable for production systems.
  96. config DEBUG_BUGVERBOSE
  97. bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED
  98. depends on BUG
  99. depends on ARM || ARM26 || M32R || M68K || SPARC32 || SPARC64 || (X86 && !X86_64) || FRV
  100. default !EMBEDDED
  101. help
  102. Say Y here to make BUG() panics output the file name and line number
  103. of the BUG call as well as the EIP and oops trace. This aids
  104. debugging but costs about 70-100K of memory.
  105. config DEBUG_INFO
  106. bool "Compile the kernel with debug info"
  107. depends on DEBUG_KERNEL
  108. help
  109. If you say Y here the resulting kernel image will include
  110. debugging info resulting in a larger kernel image.
  111. Say Y here only if you plan to debug the kernel.
  112. If unsure, say N.
  113. config DEBUG_IOREMAP
  114. bool "Enable ioremap() debugging"
  115. depends on DEBUG_KERNEL && PARISC
  116. help
  117. Enabling this option will cause the kernel to distinguish between
  118. ioremapped and physical addresses. It will print a backtrace (at
  119. most one every 10 seconds), hopefully allowing you to see which
  120. drivers need work. Fixing all these problems is a prerequisite
  121. for turning on USE_HPPA_IOREMAP. The warnings are harmless;
  122. the kernel has enough information to fix the broken drivers
  123. automatically, but we'd like to make it more efficient by not
  124. having to do that.
  125. config DEBUG_FS
  126. bool "Debug Filesystem"
  127. depends on DEBUG_KERNEL
  128. help
  129. debugfs is a virtual file system that kernel developers use to put
  130. debugging files into. Enable this option to be able to read and
  131. write to these files.
  132. If unsure, say N.
  133. config FRAME_POINTER
  134. bool "Compile the kernel with frame pointers"
  135. depends on DEBUG_KERNEL && ((X86 && !X86_64) || CRIS || M68K || M68KNOMMU || FRV || UML)
  136. default y if DEBUG_INFO && UML
  137. help
  138. If you say Y here the resulting kernel image will be slightly larger
  139. and slower, but it will give very useful debugging information.
  140. If you don't debug the kernel, you can say N, but we may not be able
  141. to solve problems without frame pointers.