Kconfig 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Copyright (c) 2020 Intel Corporation.
  2. # SPDX-License-Identifier: Apache-2.0
  3. menuconfig DEBUG_COREDUMP
  4. bool "Enable Core Dump"
  5. depends on ARCH_SUPPORTS_COREDUMP
  6. help
  7. Enable core dump so it can be used for offline debugging.
  8. if DEBUG_COREDUMP
  9. choice
  10. prompt "Coredump backend"
  11. default DEBUG_COREDUMP_BACKEND_LOGGING if LOG
  12. config DEBUG_COREDUMP_BACKEND_LOGGING
  13. bool "Use Logging subsystem for coredump"
  14. depends on LOG
  15. help
  16. Core dump is done via logging subsystem.
  17. config DEBUG_COREDUMP_BACKEND_FLASH_PARTITION
  18. bool "Use flash partition for coredump"
  19. depends on FLASH
  20. select FLASH_MAP
  21. select STREAM_FLASH
  22. help
  23. Core dump is saved to a flash partition with DTS alias
  24. "coredump-partition".
  25. config DEBUG_COREDUMP_BACKEND_FLASH_DEV
  26. bool "Use flash dev for coredump"
  27. depends on FLASH
  28. select STREAM_FLASH
  29. help
  30. Core dump is saved to a flash dev with "coredump-partition".
  31. endchoice
  32. choice
  33. prompt "Memory dump"
  34. default DEBUG_COREDUMP_MEMORY_DUMP_LINKER_RAM
  35. config DEBUG_COREDUMP_MEMORY_DUMP_MIN
  36. bool "Minimal"
  37. select THREAD_STACK_INFO
  38. help
  39. Only dumps the bare minimum memory content.
  40. For example, the thread struct and stack of
  41. the exception thread will be dumped.
  42. Don't use this unless you want absolutely
  43. minimum core dump.
  44. config DEBUG_COREDUMP_MEMORY_DUMP_LINKER_RAM
  45. bool "RAM defined by linker section"
  46. help
  47. Dumps the memory region between _image_ram_start[]
  48. and _image_ram_end[]. This includes at least data,
  49. noinit, and BSS sections.
  50. This is the default.
  51. endchoice
  52. config DEBUG_COREDUMP_SHELL
  53. bool "Enable Coredump shell"
  54. default y
  55. depends on SHELL
  56. help
  57. This shell provides access to coredump and its backends.
  58. endif # DEBUG_COREDUMP