summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-05-23 18:11:36 +0000
committerkib <kib@FreeBSD.org>2012-05-23 18:11:36 +0000
commit01c4156d224069177b98407585e2dcdeb75b8170 (patch)
tree4b1ca5b79449571172c87c11c2998359221a43e5 /bin/ps
parent187a8c5cd64d6fbe329a4e3d5d0d4ccfe112ae69 (diff)
downloadFreeBSD-src-01c4156d224069177b98407585e2dcdeb75b8170.zip
FreeBSD-src-01c4156d224069177b98407585e2dcdeb75b8170.tar.gz
Add 'cow' keyword to show per-process cow count.
Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c1
-rw-r--r--bin/ps/ps.14
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 17ca0d8..6c380e8 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -76,6 +76,7 @@ static VAR var[] = {
{"comm", "COMMAND", NULL, LJUST, ucomm, 0, CHAR, NULL, 0},
{"command", "COMMAND", NULL, COMM|LJUST|USER, command, 0,
CHAR, NULL, 0},
+ {"cow", "COW", NULL, 0, kvar, KOFF(ki_cow), UINT, "u", 0},
{"cpu", "CPU", NULL, 0, kvar, KOFF(ki_estcpu), UINT, "d", 0},
{"cputime", "", "time", 0, NULL, 0, CHAR, NULL, 0},
{"egid", "", "gid", 0, NULL, 0, CHAR, NULL, 0},
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index 59f29ee..d1627f6 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 March 8, 2012
+.Dd May 20, 2012
.Dt PS 1
.Os
.Sh NAME
@@ -496,6 +496,8 @@ login class
command
.It Cm command
command and arguments
+.It Cm cow
+number of copy-on-write faults
.It Cm cpu
short-term CPU usage factor (for scheduling)
.It Cm emul
OpenPOWER on IntegriCloud