Kconfig.debug 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_STACKOVERFLOW
  4. bool "Check for stack overflows"
  5. depends on DEBUG_KERNEL
  6. config DEBUG_DECOMPRESS_KERNEL
  7. bool "Using serial port during decompressing kernel"
  8. depends on DEBUG_KERNEL
  9. default n
  10. help
  11. If you say Y here you will confirm the start and the end of
  12. decompressing Linux seeing "Uncompressing Linux... " and
  13. "Ok, booting the kernel.\n" on console.
  14. config KPROBES
  15. bool "Kprobes"
  16. depends on DEBUG_KERNEL
  17. help
  18. Kprobes allows you to trap at almost any kernel address and
  19. execute a callback function. register_kprobe() establishes
  20. a probepoint and specifies the callback. Kprobes is useful
  21. for kernel debugging, non-intrusive instrumentation and testing.
  22. If in doubt, say "N".
  23. config GDBSTUB
  24. bool "Remote GDB kernel debugging"
  25. depends on DEBUG_KERNEL
  26. select DEBUG_INFO
  27. select FRAME_POINTER
  28. help
  29. If you say Y here, it will be possible to remotely debug the kernel
  30. using gdb. This enlarges your kernel ELF image disk size by several
  31. megabytes and requires a machine with more than 16 MB, better 32 MB
  32. RAM to avoid excessive linking time. This is only useful for kernel
  33. hackers. If unsure, say N.
  34. config GDBSTUB_IMMEDIATE
  35. bool "Break into GDB stub immediately"
  36. depends on GDBSTUB
  37. help
  38. If you say Y here, GDB stub will break into the program as soon as
  39. possible, leaving the program counter at the beginning of
  40. start_kernel() in init/main.c.
  41. config GDB_CONSOLE
  42. bool "Console output to GDB"
  43. depends on GDBSTUB
  44. help
  45. If you are using GDB for remote debugging over a serial port and
  46. would like kernel messages to be formatted into GDB $O packets so
  47. that GDB prints them as program output, say 'Y'.
  48. config GDBSTUB_DEBUGGING
  49. bool "Debug GDB stub by messages to serial port"
  50. depends on GDBSTUB
  51. help
  52. This causes debugging messages to be displayed at various points
  53. during execution of the GDB stub routines. Such messages will be
  54. displayed on ttyS0 if that isn't the GDB stub's port, or ttySM0
  55. otherwise.
  56. config GDBSTUB_DEBUG_ENTRY
  57. bool "Debug GDB stub entry"
  58. depends on GDBSTUB_DEBUGGING
  59. help
  60. This option causes information to be displayed about entry to or exit
  61. from the main GDB stub routine.
  62. config GDBSTUB_DEBUG_PROTOCOL
  63. bool "Debug GDB stub protocol"
  64. depends on GDBSTUB_DEBUGGING
  65. help
  66. This option causes information to be displayed about the GDB remote
  67. protocol messages generated exchanged with GDB.
  68. config GDBSTUB_DEBUG_IO
  69. bool "Debug GDB stub I/O"
  70. depends on GDBSTUB_DEBUGGING
  71. help
  72. This option causes information to be displayed about GDB stub's
  73. low-level I/O.
  74. config GDBSTUB_DEBUG_BREAKPOINT
  75. bool "Debug GDB stub breakpoint management"
  76. depends on GDBSTUB_DEBUGGING
  77. help
  78. This option causes information to be displayed about GDB stub's
  79. breakpoint management.
  80. choice
  81. prompt "GDB stub port"
  82. default GDBSTUB_TTYSM0
  83. depends on GDBSTUB
  84. help
  85. Select the serial port used for GDB-stub.
  86. config GDBSTUB_ON_TTYSM0
  87. bool "/dev/ttySM0 [SIF0]"
  88. depends on MN10300_TTYSM0
  89. select GDBSTUB_ON_TTYSMx
  90. config GDBSTUB_ON_TTYSM1
  91. bool "/dev/ttySM1 [SIF1]"
  92. depends on MN10300_TTYSM1
  93. select GDBSTUB_ON_TTYSMx
  94. config GDBSTUB_ON_TTYSM2
  95. bool "/dev/ttySM2 [SIF2]"
  96. depends on MN10300_TTYSM2
  97. select GDBSTUB_ON_TTYSMx
  98. config GDBSTUB_ON_TTYS0
  99. bool "/dev/ttyS0"
  100. select GDBSTUB_ON_TTYSx
  101. config GDBSTUB_ON_TTYS1
  102. bool "/dev/ttyS1"
  103. select GDBSTUB_ON_TTYSx
  104. endchoice
  105. config GDBSTUB_ON_TTYSMx
  106. bool
  107. depends on GDBSTUB_ON_TTYSM0 || GDBSTUB_ON_TTYSM1 || GDBSTUB_ON_TTYSM2
  108. default y
  109. config GDBSTUB_ON_TTYSx
  110. bool
  111. depends on GDBSTUB_ON_TTYS0 || GDBSTUB_ON_TTYS1
  112. default y
  113. endmenu