Kconfig.debug 3.9 KB

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