Exception dump hook#103449
Conversation
94d435a to
c0251dc
Compare
c0251dc to
7ad59c4
Compare
7ad59c4 to
bcfc0d7
Compare
|
Try to fix automatic build check errors. |
bcfc0d7 to
881ba55
Compare
881ba55 to
b1d2340
Compare
|
Dropped idle "default n", and cleaned up couple of unrelated white-space changes. |
|
I missed that this is an architecture interface. In that case, it needs to be prefixed with |
b1d2340 to
4e04b69
Compare
|
Prefixes added to all global symbols. Also added the drain hook calls to the cases where the error was not fatal. |
|
Please rebase to fix the CI failures. |
@dcpleung The prefixes should now be in place. |
|
Need to fix the compliance check error and a rebase. |
4e04b69 to
6148732
Compare
|
I think you still need to rebase it to latest main for fix the twister issue. |
Add hooks for delivering exception dump prints over a specialized interface. If CONFING_EXCEPTION_DUMP_HOOK=y then a client program can set function pointers for printing, flushing, and draining exception generated prints. These hooks were implemented for SOF usage, but should be generic enough to implement alternative exception reporting on any platform. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
The new exception dump hooks provides helper function for draining or flushing the accumulated dump data. These helpers are for the backend to deal intelligently with often excessive amount of data for limited bandwidth interfaces. These calls are placed specifically for SOF application, but AFAIK SOF is the most widely used Zephyr application running on Xtensa. The helpers do not have any effect if CONFIG_EXCEPTION_DUMP_HOOK is not set. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Add Kconfig option EXCEPTION_DUMP_HOOK_ONLY. If the option is selected the exception dumps are sent only to the exception hook. Sometimes even the attempt to log in the exception routine may hang the system. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Add XTENSA_BACKTRACE_EXCEPTION_DUMP_HOOK Kconfig option for sending backtrace through exception dump hook. This commit also disables the printk backtrace dumping if Kconfig option EXCEPTION_DUMP_HOOK_ONLY is set. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
6148732 to
f73ad97
Compare
|
The latest version of zephyrproject-rtos/zephyr#103449 has changed the name of set_exception_dump_hook() to arch_exception_set_dump_hook(). The PR is now merged, so we should update the function name. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
The latest version of zephyrproject-rtos/zephyr#103449 has changed the name of set_exception_dump_hook() to arch_exception_set_dump_hook(). The PR is now merged, so we should update the function name. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>



The exception dump hooks now work reliably with SOF and thesofproject/sof#10517 .