From e2cff1bccd7f8ab53aeb946bc46518beceb73929 Mon Sep 17 00:00:00 2001 From: Jyri Sarha Date: Mon, 23 Sep 2024 23:27:59 +0300 Subject: [PATCH] app: add new debug_stream_overlay.conf Add overlay to build debug_stream protocol over a debug window slot, make room for the slot, and send thread info data through it. Signed-off-by: Jyri Sarha --- app/debug_stream_overlay.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/debug_stream_overlay.conf diff --git a/app/debug_stream_overlay.conf b/app/debug_stream_overlay.conf new file mode 100644 index 000000000000..0195e5070b33 --- /dev/null +++ b/app/debug_stream_overlay.conf @@ -0,0 +1,20 @@ +# Enable debug-stream protocol +CONFIG_SOF_DEBUG_STREAM_SLOT=y +# Add thread_info-client for debug stream +CONFIG_SOF_DEBUG_STREAM_THREAD_INFO=y +# Zephyr option for storing human readable thread names +CONFIG_THREAD_NAME=y + +# Debug window slot configuration 1 +# The CONFIG_SOF_TELEMETRY uses slot 2, but with performance and IO-performance +# it extends beyond slot 3. +CONFIG_MEMORY_WIN_2_SIZE=16384 +CONFIG_SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS=n +CONFIG_SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS=n + +# If we turn telemetry off all together, we can use slot 2. Slot 1 is used by mtrace +#CONFIG_SOF_DEBUG_STREAM_SLOT_NUMBER=2 +#CONFIG_SOF_TELEMETRY=n +#CONFIG_SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS=n +#CONFIG_SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS=n +