Kconfig.debug 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config EARLY_PRINTK
  4. bool "Early printk"
  5. depends on EMBEDDED && DEBUG_KERNEL
  6. default n
  7. help
  8. Write kernel log output directly into the VGA buffer or to a serial
  9. port.
  10. This is useful for kernel debugging when your machine crashes very
  11. early before the console code is initialized. For normal operation
  12. it is not recommended because it looks ugly and doesn't cooperate
  13. with klogd/syslogd or the X server. You should normally N here,
  14. unless you want to debug such a crash.
  15. config DEBUG_STACKOVERFLOW
  16. bool "Check for stack overflows"
  17. depends on DEBUG_KERNEL
  18. config DEBUG_PAGEALLOC
  19. bool "Page alloc debugging"
  20. depends on DEBUG_KERNEL
  21. help
  22. Unmap pages from the kernel linear mapping after free_pages().
  23. This results in a large slowdown, but helps to find certain types
  24. of memory corruptions.
  25. config GDBSTUB
  26. bool "Remote GDB kernel debugging"
  27. depends on DEBUG_KERNEL
  28. select DEBUG_INFO
  29. select FRAME_POINTER
  30. help
  31. If you say Y here, it will be possible to remotely debug the kernel
  32. using gdb. This enlarges your kernel ELF image disk size by several
  33. megabytes and requires a machine with more than 16 MB, better 32 MB
  34. RAM to avoid excessive linking time. This is only useful for kernel
  35. hackers. If unsure, say N.
  36. choice
  37. prompt "GDB stub port"
  38. default GDBSTUB_UART1
  39. depends on GDBSTUB
  40. help
  41. Select the on-CPU port used for GDB-stub
  42. config GDBSTUB_UART0
  43. bool "/dev/ttyS0"
  44. config GDBSTUB_UART1
  45. bool "/dev/ttyS1"
  46. endchoice
  47. config GDBSTUB_IMMEDIATE
  48. bool "Break into GDB stub immediately"
  49. depends on GDBSTUB
  50. help
  51. If you say Y here, GDB stub will break into the program as soon as
  52. possible, leaving the program counter at the beginning of
  53. start_kernel() in init/main.c.
  54. config GDB_CONSOLE
  55. bool "Console output to GDB"
  56. depends on GDBSTUB
  57. help
  58. If you are using GDB for remote debugging over a serial port and
  59. would like kernel messages to be formatted into GDB $O packets so
  60. that GDB prints them as program output, say 'Y'.
  61. endmenu