Commit d0f555f
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 c9c2d83 commit d0f555f
2 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 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 | + | |
| 181 | + | |
| 182 | + | |
155 | 183 | | |
0 commit comments