linux/include
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
..
acpi
asm-alpha [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-arm [ARM] Tighten pfn_valid() test. 2005-09-15 15:17:59 +01:00
asm-arm26 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-cris
asm-frv [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-generic
asm-h8300 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-i386 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-ia64 Pull fix-offsets-h into release branch 2005-09-14 14:14:45 -07:00
asm-m32r [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-m68k [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-m68knommu [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-mips [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-parisc [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-powerpc
asm-ppc [PATCH] ppc32 8xx: flush_tlb_range() declaration uses wrong pointer type 2005-09-14 14:34:17 -07:00
asm-ppc64
asm-s390
asm-sh [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-sh64 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-sparc
asm-sparc64
asm-um [PATCH] uml: breakpoint an arbitrary thread 2005-09-17 11:49:59 -07:00
asm-v850
asm-x86_64 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-xtensa [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
linux [PATCH] cleanup whitespace in pci_ids.h 2005-09-16 10:46:28 -07:00
math-emu
media
mtd
net [IPVS]: ip_vs_ftp breaks connections using persistence 2005-09-14 21:08:51 -07:00
pcmcia
rdma
rxrpc
scsi
sound
video [PATCH] drivers/video: Replace custom macro with isdigit() 2005-09-13 08:22:33 -07:00