freebsd-skq/sys/powerpc
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
..
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 Some style(9) fixes 2013-12-13 05:54:25 +00:00
fpu Kernel support for the Vector-Scalar eXtension (VSX) found on the POWER7 2015-02-22 21:40:27 +00:00
include Add PVR identifier for E6500, from the reference. 2015-09-09 03:15:25 +00:00
mambo CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
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 Allow PowerMac systems to be booted from an FDT as well as Open Firmware. 2015-03-10 16:01:43 +00:00
powerpc Add stack_save_td_running(), a function to trace the kernel stack of a 2015-09-11 03:54:37 +00:00
ps3 Add support for USB display link adapters to the FB and VT drivers. 2015-03-07 20:45:15 +00:00
pseries CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
psim Move Open Firmware device root on PowerPC, ARM, and MIPS systems to 2014-02-05 14:44:22 +00:00