From 4f1e1f86a146bf3754f70561c621ad492c5cd9cd Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Wed, 23 May 2012 18:11:36 +0000 Subject: [PATCH] Add 'cow' keyword to show per-process cow count. Submitted by: Andrey Zonov MFC after: 1 week --- bin/ps/keyword.c | 1 + bin/ps/ps.1 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index 17ca0d87c512..6c380e8b8f15 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 59f29ee4ba61..d1627f640cd4 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