Paul Olaru
3ed68f15af
panic: Distinguish exceptions from other panics
...
On exceptions and panics, the code will reach panic_rewind. That
function will, among the other things it needs to do to dump the info,
will also dump the exception cause (exccause register). This means that
normally coredumps from panics and those from exceptions are
indistinguishable.
In this commit I reserve the maximum value for exccause (63) to signify
that the dump actually came from a panic instead of a hardware
exception. The easiest way I could see that would not duplicate code is
to simply set the exccause register to this reserved value (otherwise it
could be undefined, as it's not initialized at boot).
I also update the core dumper tool to use 63 as the value reserved for
panics instead of 0 (which is IllegalInstructionCause, a valid hardware
exception).
Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
2019-08-01 14:17:18 +02:00
Janusz Jankowski
ba2fefb172
license: use spdx identifier in shell scripts
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-02 16:38:17 +01:00
Janusz Jankowski
644a1b4746
license: use spdx identifier in python files
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-02 16:38:17 +01:00
Janusz Jankowski
0c30369f98
uapi: xtensa: remove stack field
...
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-05-17 16:34:26 +02:00
Adrian Bonislawski
9d3471d851
coredump-reader: print exception cause and location
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-16 10:14:37 +01:00
Adrian Bonislawski
db1e17d880
coredump-reader: grep gdb output to print only interesting parts
...
this will hide default starting gdb prints
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-15 15:41:49 +02:00
Adrian Bonislawski
ed6ac05f6b
coredump-reader: proper structs alignment with fw data
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-09 12:46:48 +02:00
Adrian Bonislawski
faf6696ea3
coredump-reader: fix windowbase and windowstart calculations
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-09 12:46:48 +02:00
Adrian Bonislawski
b5ea5da52b
coredump: add stack ptr + rewind_frames offset to plat header
...
+ coredump-reader changes to use new variable
+ moved dump_stack before arch_dump_regs in panic
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-09 12:46:48 +02:00
Adrian Bonislawski
1071076be1
coredump: enhancement of example file
...
To make it more user-friendly by getting rid of empty prompts in output
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-05 11:25:16 +02:00
Adrian Bonislawski
5949148b94
coredump-reader: add info to notice user about non-critical warning
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski
fc13cff773
coredump-reader: unnecessary comments removed
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski
db7a3cfe1b
coredump-reader: core header and registers printing separately
...
To separate them visually for better reading
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski
56682f4d79
coredump-reader: remove isatty() and fixed print when used with piped more
...
Now it is possible to pipe output with 'more'
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski
2e63ee2144
coredump-reader: make columncount dependent on verbose option in help
...
This is to notice user that columncount option will work only with verbose
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski
75466d8b2d
coredump-reader: remove unnecessary separator + proper permissions
...
Two separators didnt work correctly
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski
2302012fe9
coredump-reader: fix fg error when running without colours
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-03-29 13:27:53 +01:00
Adrian Bonislawski
44705dfc09
debugability: update coredump reader
...
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-03-27 21:10:48 +00:00
Michal Jerzy Wierzbicki
dd07c8e3b0
tools/coredumper: added support for sof_ipc_dsp_oops_header; added handling of invalid windowbase; added exceptions for invalid flag usage
2019-01-08 13:25:32 +00:00
Curtis Malainey
5b5888ce07
Move SOFT into sub folder for SOF merge
...
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2018-11-24 23:27:24 -08:00