Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2012 18:11:37 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r235851 - head/bin/ps
Message-ID:  <201205231811.q4NIBbHX088000@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed May 23 18:11:36 2012
New Revision: 235851
URL: http://svn.freebsd.org/changeset/base/235851

Log:
  Add 'cow' keyword to show per-process cow count.
  
  Submitted by:	Andrey Zonov <andrey zonov org>
  MFC after:	1 week

Modified:
  head/bin/ps/keyword.c
  head/bin/ps/ps.1

Modified: head/bin/ps/keyword.c
==============================================================================
--- head/bin/ps/keyword.c	Wed May 23 18:10:54 2012	(r235850)
+++ head/bin/ps/keyword.c	Wed May 23 18:11:36 2012	(r235851)
@@ -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},

Modified: head/bin/ps/ps.1
==============================================================================
--- head/bin/ps/ps.1	Wed May 23 18:10:54 2012	(r235850)
+++ head/bin/ps/ps.1	Wed May 23 18:11:36 2012	(r235851)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205231811.q4NIBbHX088000>