Kconfig.debug 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. bool
  4. default y
  5. source "lib/Kconfig.debug"
  6. config CMDLINE
  7. string "Default kernel command string"
  8. default ""
  9. help
  10. On some platforms, there is currently no way for the boot loader to
  11. pass arguments to the kernel. For these platforms, you can supply
  12. some command-line options at build time by entering them here. In
  13. other cases you can specify kernel args so that you don't have
  14. to set them up in board prom initialization routines.
  15. config DEBUG_STACK_USAGE
  16. bool "Enable stack utilization instrumentation"
  17. depends on DEBUG_KERNEL
  18. help
  19. Enables the display of the minimum amount of free stack which each
  20. task has ever had available in the sysrq-T and sysrq-P debug output.
  21. This option will slow down process creation somewhat.
  22. config SMTC_IDLE_HOOK_DEBUG
  23. bool "Enable additional debug checks before going into CPU idle loop"
  24. depends on DEBUG_KERNEL && MIPS_MT_SMTC
  25. help
  26. This option enables Enable additional debug checks before going into
  27. CPU idle loop. For details on these checks, see
  28. arch/mips/kernel/smtc.c. This debugging option result in significant
  29. overhead so should be disabled in production kernels.
  30. config KGDB
  31. bool "Remote GDB kernel debugging"
  32. depends on DEBUG_KERNEL && SYS_SUPPORTS_KGDB
  33. select DEBUG_INFO
  34. help
  35. If you say Y here, it will be possible to remotely debug the MIPS
  36. kernel using gdb. This enlarges your kernel image disk size by
  37. several megabytes and requires a machine with more than 16 MB,
  38. better 32 MB RAM to avoid excessive linking time. This is only
  39. useful for kernel hackers. If unsure, say N.
  40. config SYS_SUPPORTS_KGDB
  41. bool
  42. config GDB_CONSOLE
  43. bool "Console output to GDB"
  44. depends on KGDB
  45. help
  46. If you are using GDB for remote debugging over a serial port and
  47. would like kernel messages to be formatted into GDB $O packets so
  48. that GDB prints them as program output, say 'Y'.
  49. config SB1XXX_CORELIS
  50. bool "Corelis Debugger"
  51. depends on SIBYTE_SB1xxx_SOC
  52. select DEBUG_INFO
  53. help
  54. Select compile flags that produce code that can be processed by the
  55. Corelis mksym utility and UDB Emulator.
  56. config RUNTIME_DEBUG
  57. bool "Enable run-time debugging"
  58. depends on DEBUG_KERNEL
  59. help
  60. If you say Y here, some debugging macros will do run-time checking.
  61. If you say N here, those macros will mostly turn to no-ops. See
  62. include/asm-mips/debug.h for debuging macros.
  63. If unsure, say N.
  64. config MIPS_UNCACHED
  65. bool "Run uncached"
  66. depends on DEBUG_KERNEL && !SMP && !SGI_IP27
  67. help
  68. If you say Y here there kernel will disable all CPU caches. This will
  69. reduce the system's performance dramatically but can help finding
  70. otherwise hard to track bugs. It can also useful if you're doing
  71. hardware debugging with a logic analyzer and need to see all traffic
  72. on the bus.
  73. endmenu