From 1b60f972727e862bb97450ba3f4db9d3904dedb6 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Fri, 2 May 2014 23:30:39 +0000 Subject: Add -J command/flag to filter by jail name/jid. This will automatically display the JID as well (the -j command/flag). 0 displays host. + displays all. MFC after: 2 weeks Relnotes: yes --- contrib/top/top.X | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'contrib/top/top.X') diff --git a/contrib/top/top.X b/contrib/top/top.X index 9c54f85637e8..15cf2dcb5119 100644 --- a/contrib/top/top.X +++ b/contrib/top/top.X @@ -20,6 +20,8 @@ top \- display and update information about the top cpu processes ] [ .BI \-s time ] [ +.BI \-J jail +] [ .BI \-U username ] [ .I number @@ -171,6 +173,21 @@ values are \*(lqcpu\*(rq, \*(lqsize\*(rq, \*(lqres\*(rq, and \*(lqtime\*(rq, but may vary on different operating systems. Note that not all operating systems support this option. .TP +.BI \-J jail +Show only those processes owned by +.IR jail . +This may be either the +.B jid +or +.B name +of the jail. +Use +.B 0 +to limit to host processes. +Using this option implies the +.B \-j +flag. +.PP .BI \-U username Show only those processes owned by .IR username . @@ -315,6 +332,12 @@ Toggle the display of .IR jail (8) ID. .TP +.B J +Display only processes owned by a specific jail (prompt for jail). +If the jail specified is simply \*(lq+\*(rq, then processes belonging +to all jails and the host will be displayed. +This will also enable the display of JID. +.TP .B P Toggle the display of per-CPU statistics. .TP -- cgit v1.2.3