diff options
author | Rob Barnes <robbarnes@google.com> | 2022-12-20 15:36:24 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-07 19:31:46 +0000 |
commit | bb348806dfcc219e8e388617d1748077b0965b9c (patch) | |
tree | e4e309b183d90f10aa723af9d08c7d90d54e4c26 /zephyr/Kconfig.system | |
parent | f42bb43a981e2c46e74a8ad58fe132ac7a366780 (diff) | |
download | chrome-ec-bb348806dfcc219e8e388617d1748077b0965b9c.tar.gz |
system: Introduce Memory Dump Host Commands
Add memory dump host commands and memory dump backend.
These commands allow the host to fetch metadata about
the coredump and fetch the actual coredump data. Host
command payloads are limited to <256 byts on many
platforms, so these commands are structured to work
around this limitation.
These commands do not allow fetching arbitrary memory.
Each memory dump region must be explicitly registered
for dumping before the host may fetch it.
BUG=b:263250131
BRANCH=None
TEST=Passing memory_dump_hostcmds unit test
ectool memory_dump outputs memory dump.
Change-Id: Iebddc2c1a65d741d3e7e5936bd6156647f193dc6
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4117923
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.system')
-rw-r--r-- | zephyr/Kconfig.system | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/Kconfig.system b/zephyr/Kconfig.system index 1db45ef2a8..7a92d2686f 100644 --- a/zephyr/Kconfig.system +++ b/zephyr/Kconfig.system @@ -98,4 +98,12 @@ config PLATFORM_EC_SYSTEM_SAFE_MODE_TIMEOUT_MSEC Safe mode will force a system reset after this timeout. The system may reset sooner if all safe mode tasks are completed before the timeout. +config PLATFORM_EC_HOST_COMMAND_MEMORY_DUMP + bool "Enable Memory Dump Host Commands" + select THREAD_STACK_INFO + help + Enables fetching a memory dump using host commands. This is useful when + debugging panics. May not dump all memory, e.g. sensitive memory will + not be dumped. + endif # PLATFORM_EC |