arch: x86: implement arch_stack_walk()

Currently it supports `esf` based unwinding only.

Then, update the exception stack unwinding to use
`arch_stack_walk()`, and update the Kconfigs & testcase
accordingly.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2024-08-14 17:08:28 +08:00 committed by Anas Nashif
commit 06a8c35316
5 changed files with 80 additions and 41 deletions

View file

@ -42,7 +42,8 @@ tests:
type: multi_line
regex:
- "E: call trace:"
- "E: (E|R)IP: \\w+"
- "E: 0: \\w+"
- "E: 1: \\w+"
arch.common.stack_unwind.arm64:
arch_allow:
- arm64