zephyr/subsys/shell
Yong Cong Sin b98a60773b shell: kernel: add command to unwind a thread
Add a shell command to unwind a thread using its thread id.

uart:~$ kernel threads
Scheduler: 11 since last call
Threads:
*0x80017138 shell_uart
        options: 0x0, priority: 14 timeout: 0
        state: queued, entry: 0x800029ac
        stack size 3072, unused 1316, usage 1756 / 3072 (57 %)

 0x80017ca8 sysworkq
        options: 0x1, priority: -1 timeout: 0
        state: pending, entry: 0x80006842
        stack size 1024, unused 644, usage 380 / 1024 (37 %)

 0x800177e0 idle
        options: 0x1, priority: 15 timeout: 0
        state: , entry: 0x800065ae
        stack size 512, unused 180, usage 332 / 512 (64 %)

 0x80017950 main
        options: 0x1, priority: 0 timeout: 13
        state: suspended, entry: 0x80006326
        stack size 4096, unused 3604, usage 492 / 4096 (12 %)

uart:~$ kernel unwind 0x80017ca8
Unwinding 0x80017ca8 sysworkq
ra: 0x80007114 [z_swap+0x58]
ra: 0x80007ae8 [z_sched_wait+0x10]
ra: 0x8000689a [work_queue_main+0x58]
ra: 0x800006de [z_thread_entry+0x2e]

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-06-13 16:46:48 -04:00
..
backends net: Start socket service thread by net core init 2024-06-03 09:49:01 +02:00
modules shell: kernel: add command to unwind a thread 2024-06-13 16:46:48 -04:00
CMakeLists.txt
Kconfig posix: deprecate POSIX_FNMATCH GETOPT GETENTROPY 2024-06-04 16:27:12 -05:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell.c
shell_cmds.c
shell_fprintf.c
shell_help.c
shell_help.h
shell_history.c
shell_log_backend.c
shell_ops.c
shell_ops.h shell: change controlling expressions in while to Boolean 2024-06-12 14:22:36 +03:00
shell_utils.c
shell_utils.h
shell_vt100.h
shell_wildcard.c
shell_wildcard.h