Kconfig.debug 3.4 KB

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