diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-05-08 01:18:17 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-06-24 15:34:27 +0200 |
commit | f7667ca106df50ff8b776db54f85074dc9c52e1b (patch) | |
tree | 9bee827b7df376837359c2591bd8499b2008fe14 /arch/xtensa/Kconfig.debug | |
parent | xtensa: rearrange show_stack output (diff) | |
download | linux-f7667ca106df50ff8b776db54f85074dc9c52e1b.tar.xz linux-f7667ca106df50ff8b776db54f85074dc9c52e1b.zip |
xtensa: dump userspace code around the exception PC
In the absence of other debug facilities dumping user code around the
unhandled exception address may help debugging the issue.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/Kconfig.debug')
-rw-r--r-- | arch/xtensa/Kconfig.debug | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/xtensa/Kconfig.debug b/arch/xtensa/Kconfig.debug index 83cc8d12fa0e..e84172a7763c 100644 --- a/arch/xtensa/Kconfig.debug +++ b/arch/xtensa/Kconfig.debug @@ -38,3 +38,11 @@ config PRINT_STACK_DEPTH help This option allows you to set the stack depth that the kernel prints in stack traces. + +config PRINT_USER_CODE_ON_UNHANDLED_EXCEPTION + bool "Dump user code around unhandled exception address" + help + Enable this option to display user code around PC of the unhandled + exception (starting at address aligned on 16 byte boundary). + This may simplify finding faulting code in the absence of other + debug facilities. |