android_kernel_xiaomi_sm8350/arch/um
Jeff Dike 3eddddcf23 [PATCH] uml: breakpoint an arbitrary thread
This patch implements a stack trace for a thread, not unlike sysrq-t does.
The advantage to this is that a break point can be placed on showreqs, so that
upon showing the stack, you jump immediately into the debugger.  While sysrq-t
does the same thing, sysrq-t shows *all* threads stacks.  It also doesn't work
right now.  In the future, I thought it might be acceptable to make this show
all pids stacks, but perhaps leaving well enough alone and just using sysrq-t
would be okay.  For now, upon receiving the stack command, UML switches
context to that thread, dumps its registers, and then switches context back to
the original thread.  Since UML compacts all threads into one of 4 host
threads, this sort of mechanism could be expanded in the future to include
other debugging helpers that sysrq does not cover.

Note by jdike - The main benefit to this is that it brings an arbitrary thread
back into context, where it can be examined by gdb.  The fact that it dumps it
stack is secondary.  This provides the capability to examine a sleeping
thread, which has existed in tt mode, but not in skas mode until now.

Also, the other threads, that sysrq doesn't cover, can be gdb-ed directly
anyway.

Signed-off-by: Allan Graves<allan.graves@gmail.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-17 11:49:59 -07:00
..
drivers [PATCH] uml: breakpoint an arbitrary thread 2005-09-17 11:49:59 -07:00
include [PATCH] uml: breakpoint an arbitrary thread 2005-09-17 11:49:59 -07:00
kernel [PATCH] uml: breakpoint an arbitrary thread 2005-09-17 11:49:59 -07:00
os-Linux [PATCH] bogus symbol used in arch/um/os-Linux/elf_aux.c 2005-09-07 17:17:33 -07:00
scripts [PATCH] sparse on uml (infrastructure bits) 2005-09-09 10:31:58 -07:00
sys-i386 [PATCH] bogus symbol used in arch/um/os-Linux/elf_aux.c 2005-09-07 17:17:33 -07:00
sys-ia64
sys-ppc
sys-x86_64 [PATCH] bogus symbol used in arch/um/os-Linux/elf_aux.c 2005-09-07 17:17:33 -07:00
util
config.release
defconfig
Kconfig [PATCH] uml: mark SMP on UML/x86_64 as broken 2005-09-05 00:06:22 -07:00
Kconfig.char [PATCH] uml: Rename Kconfig files to be like the other arches 2005-09-05 00:06:19 -07:00
Kconfig.debug [PATCH] uml: workaround GDB problems on debugging 2005-09-05 00:06:20 -07:00
Kconfig.i386 [PATCH] uml: Rename Kconfig files to be like the other arches 2005-09-05 00:06:19 -07:00
Kconfig.net [PATCH] uml: Rename Kconfig files to be like the other arches 2005-09-05 00:06:19 -07:00
Kconfig.scsi [PATCH] uml: Rename Kconfig files to be like the other arches 2005-09-05 00:06:19 -07:00
Kconfig.x86_64 [PATCH] uml: mark SMP on UML/x86_64 as broken 2005-09-05 00:06:22 -07:00
Makefile kbuild: rename prepare to archprepare to fix dependency chain 2005-09-11 22:30:22 +02:00
Makefile-i386 [PATCH] lost chunk of "uml: build cleanups" 2005-09-07 17:17:32 -07:00
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas
Makefile-tt
Makefile-x86_64 [PATCH] sparse on uml (infrastructure bits) 2005-09-09 10:31:58 -07:00