diff options
author | Garance A Drosehn <gad@FreeBSD.org> | 2004-06-20 22:22:49 +0000 |
---|---|---|
committer | Garance A Drosehn <gad@FreeBSD.org> | 2004-06-20 22:22:49 +0000 |
commit | 76adc1fd42f54f79d64219f38564fe8957cd771c (patch) | |
tree | 174b5d352e07d284d8d3601bc7353f5cac157b44 /bin/ps/keyword.c | |
parent | 7638fa19a72b80cf66992f24ee89a8beab95aa03 (diff) | |
download | src-76adc1fd42f54f79d64219f38564fe8957cd771c.tar.gz src-76adc1fd42f54f79d64219f38564fe8957cd771c.zip |
Notes
Diffstat (limited to 'bin/ps/keyword.c')
-rw-r--r-- | bin/ps/keyword.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index 6f013549fbb1..f5aa959e9436 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -57,6 +57,10 @@ static int vcmp(const void *, const void *); #define KOFF(x) offsetof(struct kinfo_proc, x) #define ROFF(x) offsetof(struct rusage, x) +#define LWPFMT "d" +#define LWPLEN 6 +#define NLWPFMT "d" +#define NLWPLEN 4 #define UIDFMT "u" #define UIDLEN 5 #define PIDFMT "d" @@ -102,6 +106,8 @@ static VAR var[] = { {"logname", "", "login", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, {"lstart", "STARTED", NULL, LJUST|USER, lstarted, NULL, 28, 0, CHAR, NULL, 0}, + {"lwp", "LWP", NULL, 0, kvar, NULL, LWPLEN, KOFF(ki_tid), UINT, + LWPFMT, 0}, {"majflt", "MAJFLT", NULL, USER, rvar, NULL, 4, ROFF(ru_majflt), LONG, "ld", 0}, {"minflt", "MINFLT", NULL, USER, rvar, NULL, 4, ROFF(ru_minflt), @@ -116,6 +122,8 @@ static VAR var[] = { 0}, {"nivcsw", "NIVCSW", NULL, USER, rvar, NULL, 5, ROFF(ru_nivcsw), LONG, "ld", 0}, + {"nlwp", "NLWP", NULL, 0, kvar, NULL, NLWPLEN, KOFF(ki_numthreads), + UINT, NLWPFMT, 0}, {"nsignals", "", "nsigs", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, {"nsigs", "NSIGS", NULL, USER, rvar, NULL, 4, ROFF(ru_nsignals), LONG, "ld", 0}, |