Kconfig.debug 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # SPDX-License-Identifier: GPL-2.0
  2. menu "Kernel hacking"
  3. source "lib/Kconfig.debug"
  4. config EARLY_PRINTK
  5. def_bool DEBUG_OCD
  6. help
  7. Write kernel log output directly into the ocd or to a serial port.
  8. This is useful for kernel debugging when your machine crashes very
  9. early before the console code is initialized. For normal operation
  10. it is not recommended because it looks ugly and doesn't cooperate
  11. with klogd/syslogd or the X server. You should normally N here,
  12. unless you want to debug such a crash.
  13. # These options are only for real kernel hackers who want to get their hands dirty.
  14. config DEBUG_LL
  15. bool "Kernel low-level debugging functions"
  16. depends on DEBUG_KERNEL
  17. help
  18. Say Y here to include definitions of printascii, printch, printhex
  19. in the kernel. This is helpful if you are debugging code that
  20. executes before the console is initialized.
  21. config DEBUG_OCD
  22. bool "Kernel low-level debugging via On-Chip-Debugger"
  23. depends on DEBUG_LL
  24. default y
  25. help
  26. Say Y here if you want the debug print routines to direct their
  27. output to the UniCore On-Chip-Debugger channel using CP #1.
  28. endmenu