freebsd-skq/sys/mips
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
..
adm5120 Add support for the uart classes to set their default register shift value. 2015-04-11 17:16:23 +00:00
alchemy
atheros Populate hw.model with the CPU model information. 2015-07-14 05:14:10 +00:00
beri preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
cavium Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
conf Make Broadcom XLR use shared ds1374 RTC driver. 2015-07-29 15:32:59 +00:00
gxemul
idt
include Rationalize BSD license on sys/*/include/in_cksum.h 2015-08-05 19:05:12 +00:00
malta
mips Add stack_save_td_running(), a function to trace the kernel stack of a 2015-09-11 03:54:37 +00:00
nlm CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
rmi Remove rge driver from Broadcom XLR 2015-09-04 19:57:28 +00:00
rt305x Add support for the uart classes to set their default register shift value. 2015-04-11 17:16:23 +00:00
sentry5
sibyte