Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2012 13:00:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r236306 - stable/8/bin/ps
Message-ID:  <201205301300.q4UD0hN2050418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed May 30 13:00:43 2012
New Revision: 236306
URL: http://svn.freebsd.org/changeset/base/236306

Log:
  MFC r235851:
  Add 'cow' keyword to show per-process cow count.

Modified:
  stable/8/bin/ps/keyword.c
  stable/8/bin/ps/ps.1
Directory Properties:
  stable/8/bin/ps/   (props changed)

Modified: stable/8/bin/ps/keyword.c
==============================================================================
--- stable/8/bin/ps/keyword.c	Wed May 30 12:45:52 2012	(r236305)
+++ stable/8/bin/ps/keyword.c	Wed May 30 13:00:43 2012	(r236306)
@@ -83,6 +83,7 @@ static VAR var[] = {
 		COMMLEN + OCOMMLEN + 1, 0, CHAR, NULL, 0},
 	{"command", "COMMAND", NULL, COMM|LJUST|USER, command, NULL, 16, 0,
 		CHAR, NULL, 0},
+	{"cow", "COW", NULL, 0, kvar, NULL, 8, KOFF(ki_cow), UINT, "u", 0},
 	{"cpu", "CPU", NULL, 0, kvar, NULL, 3, KOFF(ki_estcpu), UINT, "d",
 		0},
 	{"cputime", "", "time", 0, NULL, NULL, 0, 0, CHAR, NULL, 0},

Modified: stable/8/bin/ps/ps.1
==============================================================================
--- stable/8/bin/ps/ps.1	Wed May 30 12:45:52 2012	(r236305)
+++ stable/8/bin/ps/ps.1	Wed May 30 13:00:43 2012	(r236306)
@@ -29,7 +29,7 @@
 .\"     @(#)ps.1	8.3 (Berkeley) 4/18/94
 .\" $FreeBSD$
 .\"
-.Dd October 1, 2011
+.Dd May 20, 2012
 .Dt PS 1
 .Os
 .Sh NAME
@@ -486,6 +486,8 @@ command and arguments
 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 etime



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