diff options
author | kib <kib@FreeBSD.org> | 2014-12-13 16:18:29 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-12-13 16:18:29 +0000 |
commit | d41bf48327e4a369279b68c229110e873880419a (patch) | |
tree | 21a6b4ad228b2aef4fe0eedb1771d3e649435e34 /bin/ps | |
parent | 07899121cbcd3408ca43bb2f40102fa7e41decae (diff) | |
download | FreeBSD-src-d41bf48327e4a369279b68c229110e873880419a.zip FreeBSD-src-d41bf48327e4a369279b68c229110e873880419a.tar.gz |
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
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/ps.1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index 294ecf9..7e26dd9 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -29,7 +29,7 @@ .\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd August 27, 2014 +.Dd December 9, 2014 .Dt PS 1 .Os .Sh NAME @@ -332,6 +332,7 @@ the include file .It Dv "P_SINGLE_BOUNDARY" Ta No "0x400000" Ta "Threads should suspend at user boundary" .It Dv "P_HWPMC" Ta No "0x800000" Ta "Process is using HWPMCs" .It Dv "P_JAILED" Ta No "0x1000000" Ta "Process is in jail" +.It Dv "P_TOTAL_STOP" Ta No "0x2000000" Ta "Stopped for system suspend" .It Dv "P_INEXEC" Ta No "0x4000000" Ta "Process is in execve()" .It Dv "P_STATCHILD" Ta No "0x8000000" Ta "Child process stopped or exited" .It Dv "P_INMEM" Ta No "0x10000000" Ta "Loaded into memory" |