freebsd-skq/bin/ps
Konstantin Belousov 6ddcc23386 Add facility to stop all userspace processes. The supposed use of the
feature is to quisce the system before suspend.

Stop is implemented by reusing the thread_single(9) with the special
mode SINGLE_ALLPROC.  SINGLE_ALLPROC differs from the existing
single-threading modes by allowing (requiring) caller to operate on
other process.  Interruptible sleeps for !TDF_SBDRY threads are
suspended like SIGSTOP does it, instead of aborting the sleep, like
SINGLE_NO_EXIT, to avoid spurious EINTRs on resume.

Provide debugging sysctl debug.stop_all_proc, which causes total stop
and suspends syncer, while waiting for variable reset for resume.  It
is used for debugging; should be removed after the real use of the
interface is added.

In collaboration with:	pho
Discussed with:	avg
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2014-12-13 16:18:29 +00:00
..
extern.h Include the thread name along with the command name when displaying the 2013-01-18 18:24:40 +00:00
fmt.c - Move 'showthreads' check out of fmt.c. 2013-01-19 00:21:55 +00:00
keyword.c Return real parent pid in kinfo (used by e.g. ps) 2014-08-28 08:41:11 +00:00
Makefile Convert bin/ to LIBADD, reduce overlinking allow to build all components as 2014-11-25 11:15:40 +00:00
nlist.c
print.c Don't test arrays for being NULL. 2013-10-21 09:12:04 +00:00
ps.1 Add facility to stop all userspace processes. The supposed use of the 2014-12-13 16:18:29 +00:00
ps.c Add -J to filter by matching jail IDs and names. 2014-05-02 15:05:47 +00:00
ps.h Make ps(1) automatically size its column widths. 2011-09-29 06:31:42 +00:00