Kconfig 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. endchoice
  26. choice
  27. prompt "Memory dump"
  28. default DEBUG_COREDUMP_MEMORY_DUMP_LINKER_RAM
  29. config DEBUG_COREDUMP_MEMORY_DUMP_MIN
  30. bool "Minimal"
  31. select THREAD_STACK_INFO
  32. help
  33. Only dumps the bare minimum memory content.
  34. For example, the thread struct and stack of
  35. the exception thread will be dumped.
  36. Don't use this unless you want absolutely
  37. minimum core dump.
  38. config DEBUG_COREDUMP_MEMORY_DUMP_LINKER_RAM
  39. bool "RAM defined by linker section"
  40. help
  41. Dumps the memory region between _image_ram_start[]
  42. and _image_ram_end[]. This includes at least data,
  43. noinit, and BSS sections.
  44. This is the default.
  45. endchoice
  46. config DEBUG_COREDUMP_SHELL
  47. bool "Enable Coredump shell"
  48. default y
  49. depends on SHELL
  50. help
  51. This shell provides access to coredump and its backends.
  52. endif # DEBUG_COREDUMP