From clsung@going04.iis.sinica.edu.tw  Fri Jun 30 05:17:26 2006
Return-Path: <clsung@going04.iis.sinica.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3AA4116A412
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2006 05:17:26 +0000 (UTC)
	(envelope-from clsung@going04.iis.sinica.edu.tw)
Received: from going04.iis.sinica.edu.tw (going04.iis.sinica.edu.tw [140.109.19.154])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CF13F43D48
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2006 05:17:25 +0000 (GMT)
	(envelope-from clsung@going04.iis.sinica.edu.tw)
Received: by going04.iis.sinica.edu.tw (Postfix, from userid 1002)
	id 5A1F22844B; Fri, 30 Jun 2006 13:19:25 +0800 (CST)
Message-Id: <20060630051925.5A1F22844B@going04.iis.sinica.edu.tw>
Date: Fri, 30 Jun 2006 13:19:25 +0800 (CST)
From: Cheng-Lung Sung <clsung@FreeBSD.org>
Reply-To: Cheng-Lung Sung <clsung@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] document jid option in top(1)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         99631
>Category:       docs
>Synopsis:       [patch] document jid option in top(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rafan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 30 05:20:17 GMT 2006
>Closed-Date:    Tue May 01 15:44:48 GMT 2007
>Last-Modified:  Tue May  1 15:50:09 GMT 2007
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
committer idling
>Environment:
System: FreeBSD going04.iis.sinica.edu.tw 6.1-STABLE FreeBSD 6.1-STABLE #20: Tue Jun 6 10:27:46 CST 2006 root@going04.iis.sinica.edu.tw:/usr/obj/usr/src/sys/GOING04 i386

>Description:
	document my jid patch for top(1). 
	ref: bin/98489
>How-To-Repeat:
	% man top
>Fix:

--- top.X.orig	Wed Jun 28 08:57:54 2006
+++ top.X	Fri Jun 30 13:15:10 2006
@@ -96,6 +96,11 @@
 Do not display idle processes.
 By default, top displays both active and idle processes.
 .TP
+.B \-j
+Display the
+.IR jail (8)
+id.
+.TP
 .B \-t
 Do not display the
 .I top
@@ -170,7 +175,8 @@
 The default for
 .I count
 on an intelligent terminal is, in fact,
-.BI infinity .
+.BI infinity
+.
 .PP
 The environment variable
 .B TOP
@@ -221,7 +227,8 @@
 .TP
 .B q
 Quit
-.IR top.
+.IR top
+.
 .TP
 .B d
 Change the number of displays to show (prompt for new number).
@@ -277,6 +284,11 @@
 .BR I )
 Toggle the display of idle processes.
 .TP
+.B j
+Toggle the display of
+.IR jail (8)
+id.
+.TP
 .B t
 Toggle the display of the
 .I top
@@ -302,8 +314,11 @@
 The remainder of the screen displays information about individual
 processes.  This display is similar in spirit to
 .IR ps (1)
-but it is not exactly the same.  PID is the process id, USERNAME is the name
-of the process's owner (if
+but it is not exactly the same.  PID is the process id, 
+JID, when displayed, is the 
+.IR jail (8)
+ID corresponding to the process,
+USERNAME is the name of the process's owner (if
 .B \-u
 is specified, a UID column will be substituted for USERNAME),
 PRI is the current priority of the process,


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->matteo 
Responsible-Changed-By: ru 
Responsible-Changed-When: Sun Oct 22 17:37:59 UTC 2006 
Responsible-Changed-Why:  
Assign to the current holder of PR bin/98489. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99631 
Responsible-Changed-From-To: matteo->rafan 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Thu Feb 15 15:03:57 UTC 2007 
Responsible-Changed-Why:  
Assign to rafan, as he is working on related 98489 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99631 
State-Changed-From-To: open->patched 
State-Changed-By: rafan 
State-Changed-When: Tue Apr 17 03:12:44 UTC 2007 
State-Changed-Why:  
Committed to HEAD, MFC in 2 weeks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98489 
State-Changed-From-To: open->patched 
State-Changed-By: rafan 
State-Changed-When: Tue Apr 17 03:12:44 UTC 2007 
State-Changed-Why:  
Committed to HEAD, MFC in 2 weeks. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=99631 
State-Changed-From-To: patched->closed 
State-Changed-By: rafan 
State-Changed-When: Tue May 1 15:44:46 UTC 2007 
State-Changed-Why:  
Committed to RELENG_6. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99631 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/99631: commit references a PR
Date: Tue,  1 May 2007 15:44:28 +0000 (UTC)

 rafan       2007-05-01 15:44:19 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     contrib/top          commands.c machine.h top.X top.c 
     usr.bin/top          machine.c 
   Log:
   MFC the top -j switch:
   
    - Add a new 'j' switch and runtime option to toggle display jail id for
      each process.
   
    src/contrib/top/commands.c: 1.13
    src/contrib/top/machine.h: 1.8
    src/contrib/top/top.X: 1.18
    src/contrib/top/top.c: 1.21 and 1.22 (-j part)
    src/usr.bin/top/machine.c: 1.80
   
   PR:             98489, 99631
   Submitted by:   clsung
   Approved by:    delphij (mentor)
   
   Revision  Changes    Path
   1.12.2.1  +3 -2      src/contrib/top/commands.c
   1.7.2.1   +2 -1      src/contrib/top/machine.h
   1.12.2.3  +17 -4     src/contrib/top/top.X
   1.17.2.2  +21 -6     src/contrib/top/top.c
   1.74.2.2  +48 -10    src/usr.bin/top/machine.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
