freebsd-nq/sys/sparc64
Mark Johnston 610141cebb Add stack_save_td_running(), a function to trace the kernel stack of a
running thread.

It is currently implemented only on amd64 and i386; on these
architectures, it is implemented by raising an NMI on the CPU on which
the target thread is currently running. Unlike stack_save_td(), it may
fail, for example if the thread is running in user mode.

This change also modifies the kern.proc.kstack sysctl to use this function,
so that stacks of running threads are shown in the output of "procstat -kk".
This is handy for debugging threads that are stuck in a busy loop.

Reviewed by:	bdrewery, jhb, kib
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D3256
2015-09-11 03:54:37 +00:00
..
central
conf Spell crypto correctly. 2015-07-14 10:47:56 +00:00
ebus Simplify the ofw_bus_lookup_imap() API slightly: make it allocate maskbuf 2013-12-17 15:11:24 +00:00
fhc
include Rationalize BSD license on sys/*/include/in_cksum.h 2015-08-05 19:05:12 +00:00
isa Remove more superfluous const specifiers. 2014-02-23 18:36:45 +00:00
pci Update this driver to not save copies of registers that are no longer used 2015-04-24 13:12:04 +00:00
sbus Move the implementation of bus_space_barrier(9) to the inline function in 2013-10-24 17:06:41 +00:00
sparc64 Add stack_save_td_running(), a function to trace the kernel stack of a 2015-09-11 03:54:37 +00:00