Commit 34deb12
Jyri Sarha
debug_stream: text_msg: add optional assert_print() forwarding
Add optional support to route assert output through debug stream text
messages.
Introduce Kconfig option SOF_DEBUG_STREAM_TEXT_MSG_ASSERT_PRINT
(depends on EXCEPTION_DUMP_HOOK and ASSERT/ASSERT_VERBOSE).
Implement assert_print(const char *fmt, ...) to emit via ds_vamsg(),
and mirror to vprintk() when CONFIG_EXCEPTION_DUMP_HOOK_ONLY is not
set.
Avoid duplicate post-fault prints by skipping assert output after an
exception report has already been sent on the current CPU.
Export assert_print for use by assert paths.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent 9ce8795 commit 34deb12
2 files changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
68 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
153 | 181 | | |
0 commit comments