freebsd-skq/sys/powerpc
markj e8967c8bd9 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
..
aim Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
booke The TLB1 TSIZE is a multiple of 4, not 2, so shift 2 bits, not 1. 2015-08-29 06:52:14 +00:00
conf Implement the lockstat provider using SDT(9) instead of the custom provider 2015-07-19 22:14:09 +00:00
cpufreq
fpu
include Add PVR identifier for E6500, from the reference. 2015-09-09 03:15:25 +00:00
mambo
mikrotik Create a RouterBoard platform and use it to create a flash map 2015-08-22 05:50:18 +00:00
mpc85xx Fix freescale sdhc driver, and add it to the files list. 2015-08-27 03:47:56 +00:00
ofw Fix static fdt support. 2015-08-24 04:39:07 +00:00
powermac
powerpc Add stack_save_td_running(), a function to trace the kernel stack of a 2015-09-11 03:54:37 +00:00
ps3
pseries
psim