aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/stack.9
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2015-09-11 03:54:37 +0000
committerMark Johnston <markj@FreeBSD.org>2015-09-11 03:54:37 +0000
commit610141cebb67f24c49c698b8828067db5acc1b55 (patch)
tree28426773e296f84e10d3d95e2a1489974f368b93 /share/man/man9/stack.9
parent1e954a7c639b52ed66042795c7445f16c4fc4dc9 (diff)
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
Notes
Notes: svn path=/head/; revision=287645
Diffstat (limited to 'share/man/man9/stack.9')
0 files changed, 0 insertions, 0 deletions