Commit fd97e52
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_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 an 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 matter if the too 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 looks something like this:
CPU 2: ** FATAL EXCEPTION
** CPU 2 EXCCAUSE 63 (zephyr exception)
** PC 0xa00315db VADDR (nil)
** PS 0x60d20
** (INTLEVEL:0 EXCM: 0 UM:1 RING:0 WOE:1 OWB:13 CALLINC:2)
** A0 0xa0074680 SP 0xa00e7b60 A2 0x4 A3 0xa00e7b70
** A4 0xa00e7b50 A5 0x4 A6 0x1 A7 0x4
** A8 0xa007459a A9 0xa00e7af0 A10 0xa00afe61 A11 0xa00e7b70
** A12 0xa00e7b50 A13 0x4 A14 0xffffff3c A15 0xa00fb740
** LBEG 0xa003ae05 LEND 0xa003ae14 LCOUNT 0xa0077bf3
** SAR 0x14
** THREADPTR (nil)
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent ba001a4 commit fd97e52
File tree
2 files changed
+59
-0
lines changed- src
- debug/debug_stream
- include/user
2 files changed
+59
-0
lines changed| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments