Add "vmaddr" ps(1) keyword.

Obtained from:	CheriBSD
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
This commit is contained in:
Edward Tomasz Napierala 2017-12-01 11:32:05 +00:00
parent 36bce27be9
commit 536062099a
2 changed files with 5 additions and 1 deletions

View File

@ -225,6 +225,8 @@ static VAR var[] = {
{"usertime", "USERTIME", NULL, "user-time", USER, usertime, 0, CHAR, {"usertime", "USERTIME", NULL, "user-time", USER, usertime, 0, CHAR,
NULL, 0}, NULL, 0},
{"usrpri", "", "upr", NULL, 0, NULL, 0, CHAR, NULL, 0}, {"usrpri", "", "upr", NULL, 0, NULL, 0, CHAR, NULL, 0},
{"vmaddr", "VMADDR", NULL, "vmspace-address", 0, kvar, KOFF(ki_vmspace),
KPTR, "lx", 0},
{"vsize", "", "vsz", NULL, 0, NULL, 0, CHAR, NULL, 0}, {"vsize", "", "vsz", NULL, 0, NULL, 0, CHAR, NULL, 0},
{"vsz", "VSZ", NULL, "virtual-size", 0, vsize, 0, CHAR, NULL, 0}, {"vsz", "VSZ", NULL, "virtual-size", 0, vsize, 0, CHAR, NULL, 0},
{"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL, {"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL,

View File

@ -29,7 +29,7 @@
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 9, 2017 .Dd December 1, 2017
.Dt PS 1 .Dt PS 1
.Os .Os
.Sh NAME .Sh NAME
@ -710,6 +710,8 @@ process pointer
user name (from UID) user name (from UID)
.It Cm usertime .It Cm usertime
accumulated user CPU time accumulated user CPU time
.It Cm vmaddr
vmspace pointer
.It Cm vsz .It Cm vsz
virtual size in Kbytes (alias virtual size in Kbytes (alias
.Cm vsize ) .Cm vsize )