Skip to content

Commit f3ec0c7

Browse files
author
Jyri Sarha
committed
app: debug_stream_overlay.conf: Enable exception hook
Enabling Zephyr exception hook directs Zephyr exceptions dumps to debug_stream text message. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 5443169 commit f3ec0c7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/debug_stream_overlay.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ CONFIG_SOF_DEBUG_STREAM_TEXT_MSG=y
66
CONFIG_SOF_DEBUG_STREAM_THREAD_INFO=y
77
# Zephyr option for storing human readable thread names
88
CONFIG_THREAD_NAME=y
9+
# For Zephyr to compile with thread names on PTL we need to increase THREAD_BYTES
10+
CONFIG_MAX_THREAD_BYTES=4
911

1012
# Debug window slot configuration 1
1113
# The CONFIG_SOF_TELEMETRY uses slot 2, but with performance and IO-performance
@@ -14,9 +16,15 @@ CONFIG_MEMORY_WIN_2_SIZE=16384
1416
CONFIG_SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS=n
1517
CONFIG_SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS=n
1618

17-
# If we turn telemetry off all together, we can use slot 2. Slot 1 is used by mtrace
19+
# If we turn telemetry off altogether, we can use slot 2. Slot 1 is used by mtrace
1820
#CONFIG_SOF_DEBUG_STREAM_SLOT_NUMBER=2
1921
#CONFIG_SOF_TELEMETRY=n
2022
#CONFIG_SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS=n
2123
#CONFIG_SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS=n
2224

25+
# Enable Zephyr exception printing hook; debug stream is sensitive to this option too
26+
CONFIG_EXCEPTION_DUMP_HOOK=y
27+
# Do not try to send exception prints through logs; this causes problems on PTL with mtrace
28+
CONFIG_EXCEPTION_DUMP_HOOK_ONLY=y
29+
# Print also backtrace through the exception hook
30+
CONFIG_XTENSA_BACKTRACE_EXCEPTION_DUMP_HOOK=y

0 commit comments

Comments
 (0)