path: root/contrib/top/top.X
diff options
authorBryan Drewery <bdrewery@FreeBSD.org>2014-05-02 23:30:39 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2014-05-02 23:30:39 +0000
commit1b60f972727e862bb97450ba3f4db9d3904dedb6 (patch)
tree1be93af025ad8a4895637f23b4ea30cad0f145da /contrib/top/top.X
parent02e17f0b93420562b8f192d75ddad3d5d0d4220b (diff)
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
Notes: svn path=/head/; revision=265249
Diffstat (limited to 'contrib/top/top.X')
1 files changed, 23 insertions, 0 deletions
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.
+.BI \-J jail
+Show only those processes owned by
+.IR jail .
+This may be either the
+.B jid
+.B name
+of the jail.
+.B 0
+to limit to host processes.
+Using this option implies the
+.B \-j
.BI \-U username
Show only those processes owned by
.IR username .
@@ -315,6 +332,12 @@ Toggle the display of
.IR jail (8)
+.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.
.B P
Toggle the display of per-CPU statistics.