Kconfig.debug 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config EARLY_PRINTK
  4. bool "Early printk" if EMBEDDED && DEBUG_KERNEL
  5. default y
  6. help
  7. Write kernel log output directly into the VGA buffer or to a serial
  8. port.
  9. This is useful for kernel debugging when your machine crashes very
  10. early before the console code is initialized. For normal operation
  11. it is not recommended because it looks ugly and doesn't cooperate
  12. with klogd/syslogd or the X server. You should normally N here,
  13. unless you want to debug such a crash.
  14. config DEBUG_STACKOVERFLOW
  15. bool "Check for stack overflows"
  16. depends on DEBUG_KERNEL
  17. help
  18. This option will cause messages to be printed if free stack space
  19. drops below a certain limit.
  20. config DEBUG_STACK_USAGE
  21. bool "Stack utilization instrumentation"
  22. depends on DEBUG_KERNEL
  23. help
  24. Enables the display of the minimum amount of free stack which each
  25. task has ever had available in the sysrq-T and sysrq-P debug output.
  26. This option will slow down process creation somewhat.
  27. comment "Page alloc debug is incompatible with Software Suspend on i386"
  28. depends on DEBUG_KERNEL && SOFTWARE_SUSPEND
  29. config DEBUG_PAGEALLOC
  30. bool "Page alloc debugging"
  31. depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND
  32. help
  33. Unmap pages from the kernel linear mapping after free_pages().
  34. This results in a large slowdown, but helps to find certain types
  35. of memory corruptions.
  36. config 4KSTACKS
  37. bool "Use 4Kb for kernel stacks instead of 8Kb"
  38. depends on DEBUG_KERNEL
  39. help
  40. If you say Y here the kernel will use a 4Kb stacksize for the
  41. kernel stack attached to each process/thread. This facilitates
  42. running more threads on a system and also reduces the pressure
  43. on the VM subsystem for higher order allocations. This option
  44. will also use IRQ stacks to compensate for the reduced stackspace.
  45. config X86_FIND_SMP_CONFIG
  46. bool
  47. depends on X86_LOCAL_APIC || X86_VOYAGER
  48. default y
  49. config X86_MPPARSE
  50. bool
  51. depends on X86_LOCAL_APIC && !X86_VISWS
  52. default y
  53. endmenu