freebsd-nq/sys/arm
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
..
allwinner The vendor's DTS for Allwinner A20 uses a different way to map the gpio 2015-08-30 22:38:06 +00:00
altera/socfpga Use the new gic option on all configs that need it. 2015-05-10 12:13:27 +00:00
amlogic/aml8726 CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
annapurna/alpine Remove obsolete vendor code from Alpine platform support 2015-07-30 13:45:34 +00:00
arm Add stack_save_td_running(), a function to trace the kernel stack of a 2015-09-11 03:54:37 +00:00
at91 Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
broadcom/bcm2835 Use simple fixed name strings for these timecounters and eventimers which 2015-08-14 16:48:07 +00:00
cavium/cns11xx Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
conf Add the LED definitions from vendor's DTS. 2015-08-30 23:20:00 +00:00
freescale Make the imx watchdog actually work, by setting WDOG_CR_WDE (enable bit). 2015-08-19 20:50:31 +00:00
include Typo. 2015-08-20 13:37:08 +00:00
lpc Build the cpufunc_asm_* files based on the cpu type, not which config file 2015-03-29 22:43:39 +00:00
mv Include vm/pmap.h for pmap_kextract. 2015-04-04 23:03:11 +00:00
qemu Enable SMP on the qemu virt platform. We use the device tree to find which 2015-05-24 12:33:12 +00:00
rockchip Use the new gic option on all configs that need it. 2015-05-10 12:13:27 +00:00
samsung Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
ti Add a new PPS driver for AM335x (beaglebone) timer hardware. This can be 2015-08-13 15:19:30 +00:00
versatile Use simple fixed name strings for these timecounters and eventimers which 2015-08-14 16:48:07 +00:00
xilinx Use the new gic option on all configs that need it. 2015-05-10 12:13:27 +00:00
xscale Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00