summaryrefslogtreecommitdiffstats
path: root/sys/x86/include/stack.h
Commit message (Collapse)AuthorAgeFilesLines
* Add stack_save_td_running(), a function to trace the kernel stack of amarkj2015-09-111-0/+4
| | | | | | | | | | | | | | | | | 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
* Remove the arg0 field from struct amd64_frame. Its existence was a bug,markj2015-09-111-1/+0
| | | | | | | | | | | | since on amd64 the first argument to a function is generally not on the stack. Revert an old DTrace bug fix to some code that assumed that sizeof(struct amd64_frame) == 16. Reviewed by: jhb, kib Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3255
* Merge stack(9) implementations for i386 and amd64 under x86/.markj2015-09-111-0/+58
Reviewed by: jhb, kib Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3255
OpenPOWER on IntegriCloud