Skip to content

Commit 6bcdd13

Browse files
author
Jyri Sarha
committed
app: debug_stream_overlay.conf: Add new debug_stream Kconfig options
There is two new options, CONFIG_SOF_DEBUG_STREAM_SLOT_FORCE_MAX_CPUS and CONFIG_SOF_DEBUG_STREAM_TEXT_MSG_ASSERT_PRINT. CONFIG_SOF_DEBUG_STREAM_SLOT_FORCE_MAX_CPUS limits the amount of debug_stream support to a lower number of cores than what is available. As the number of supported cores shrink, the available circular buffer size increases. This means increased bandwidth. This is particularly useful, when debugging a problem on core 0. By defaut this option is commented out. CONFIG_SOF_DEBUG_STREAM_TEXT_MSG_ASSERT_PRINT adds optional support to route assert output through debug stream text messages. This option obeys CONFIG_EXCEPTION_DUMP_HOOK_ONLY. If it is selected the assert print is sent only to debug stream. Without it the assert prints are printed with vprintk too, Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent a218424 commit 6bcdd13

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/debug_stream_overlay.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ CONFIG_SOF_DEBUG_STREAM_THREAD_INFO=y
88
CONFIG_THREAD_NAME=y
99
# For Zephyr to compile with thread names on PTL we need to increase THREAD_BYTES
1010
CONFIG_MAX_THREAD_BYTES=4
11+
# Shrink number of CPU sections
12+
# As the number of supported cores shrink, the available circular
13+
# buffer size increases. This means increased bandwitdth. This is
14+
# particularly useful, when debugging a problem on core 0.
15+
#CONFIG_SOF_DEBUG_STREAM_SLOT_FORCE_MAX_CPUS=1
16+
17+
# Direct the assert prints to debug stream
18+
# This option obeys CONFIG_EXCEPTION_DUMP_HOOK_ONLY. If it is selected
19+
# the assert print is sent only to debug stream. Without it the assert
20+
# prints are printed with vprintk too,
21+
CONFIG_SOF_DEBUG_STREAM_TEXT_MSG_ASSERT_PRINT=y
1122

1223
# Debug window slot configuration 1
1324
# The CONFIG_SOF_TELEMETRY uses slot 2, but with performance and IO-performance

0 commit comments

Comments
 (0)