diff options
author | zont <zont@FreeBSD.org> | 2012-09-18 12:25:14 +0000 |
---|---|---|
committer | zont <zont@FreeBSD.org> | 2012-09-18 12:25:14 +0000 |
commit | 4d6eea92c09173fb3f4e23e055193788d58212e6 (patch) | |
tree | 2c40f62f4c541ab7c963bffd6ff1fd54c3e0aedd /bin | |
parent | 63628d08beb22621f214abb66146730d8cf5a37c (diff) | |
download | FreeBSD-src-4d6eea92c09173fb3f4e23e055193788d58212e6.zip FreeBSD-src-4d6eea92c09173fb3f4e23e055193788d58212e6.tar.gz |
- Add 'dsiz' and 'ssiz' keywords to show data and stack size respectively.
Approved by: kib (mentor)
MFC after: 1 week
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/keyword.c | 2 | ||||
-rw-r--r-- | bin/ps/ps.1 | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index 6c380e8..5861129 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -79,6 +79,7 @@ static VAR var[] = { {"cow", "COW", NULL, 0, kvar, KOFF(ki_cow), UINT, "u", 0}, {"cpu", "CPU", NULL, 0, kvar, KOFF(ki_estcpu), UINT, "d", 0}, {"cputime", "", "time", 0, NULL, 0, CHAR, NULL, 0}, + {"dsiz", "DSIZ", NULL, 0, kvar, KOFF(ki_dsize), PGTOK, "ld", 0}, {"egid", "", "gid", 0, NULL, 0, CHAR, NULL, 0}, {"egroup", "", "group", 0, NULL, 0, CHAR, NULL, 0}, {"emul", "EMUL", NULL, LJUST, emulname, 0, CHAR, NULL, 0}, @@ -141,6 +142,7 @@ static VAR var[] = { UINT, "x", 0}, {"sigmask", "BLOCKED", NULL, 0, kvar, KOFF(ki_sigmask), UINT, "x", 0}, {"sl", "SL", NULL, INF127, kvar, KOFF(ki_slptime), UINT, "d", 0}, + {"ssiz", "SSIZ", NULL, 0, kvar, KOFF(ki_ssize), PGTOK, "ld", 0}, {"start", "STARTED", NULL, LJUST|USER, started, 0, CHAR, NULL, 0}, {"stat", "", "state", 0, NULL, 0, CHAR, NULL, 0}, {"state", "STAT", NULL, LJUST, state, 0, CHAR, NULL, 0}, diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index d1627f6..3d37c84 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -500,6 +500,8 @@ command and arguments number of copy-on-write faults .It Cm cpu short-term CPU usage factor (for scheduling) +.It Cm dsiz +data size (in Kbytes) .It Cm emul system-call emulation environment .It Cm etime @@ -610,6 +612,8 @@ blocked signals (alias .Cm blocked ) .It Cm sl sleep time (in seconds; 127 = infinity) +.It Cm ssiz +stack size (in Kbytes) .It Cm start time started .It Cm state |