Commit be940b8
Jyri Sarha
debug_stream: text_msg: Set exception dump hooks if available
Set exception dump hooks if CONFIG_EXCEPTION_DUMP_HOOK=y. This enables
sending a simple text report of fatal exceptions. To get this working
one needs these config options:
CONFIG_EXCEPTION_DUMP_HOOK=y
CONFIG_EXCEPTION_DUMP_HOOK_ONLY=y
CONFIG_SOF_DEBUG_STREAM_SLOT=y
CONFIG_SOF_DEBUG_STREAM_TEXT_MSG=y
CONFIG_SOF_DEBUG_STREAM_SLOT_NUMBER=2
CONFIG_SOF_TELEMETRY=n
CONFIG_SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS=n
CONFIG_SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS=n
If system hangs and the exception is reported successfully the report
can be seen with debug_stream.py (which should be installed in the
same directory with cavstool.py). It does not matter if the tool was
not running at the time. The report should be available there in the
debug slot window for debug_stream.py to decode as long as system
remains up. The report should look something like this:
CPU 2:
FATAL EXCEPTION
CPU 2 EXCCAUSE 63 (zephyr exception)
PC 0xa003048b VADDR 0xa0031020
PS 0x60220
(INTLEVEL:0 EXCM: 0 UM:1 RING:0 WOE:1 OWB:2 CALLINC:2)
A0 0xa006c2b8 SP 0xa00dd160 A2 0x4 A3 0xa00dd170
A4 0xa00dd150 A5 0x4 A6 0x6 A7 0x4
A8 0xa006c109 A9 0xa00dd0f0 A10 0xa00a697d A11 0xa00dd170
A12 0xa00dd150 A13 0x4 A14 0x401a6b24 A15 0x401a6b24
LBEG 0xa0044323 LEND 0xa0044330 LCOUNT 0xa006de66
SAR 0x4
THREADPTR (nil)
BT 0xa0030488:0xa00dd160 CORRUPTED
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
src/audio/host-zephyr.c: HACK assert(0) at the begin of host_get_copy_bytes_normal()1 parent ba001a4 commit be940b8
File tree
2 files changed
+100
-0
lines changed- src
- audio
- debug/debug_stream
2 files changed
+100
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
0 commit comments