diff options
author | julian <julian@FreeBSD.org> | 2003-07-17 23:56:40 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-07-17 23:56:40 +0000 |
commit | 788547d4cf2856cc0d849f205d6384723345026b (patch) | |
tree | ae7325b9fe8cfe61e176452c39b5dd2b7846c026 /usr.bin/top | |
parent | ab57004058eee4b698f7d9cece99440ad9b49bbb (diff) | |
download | FreeBSD-src-788547d4cf2856cc0d849f205d6384723345026b.zip FreeBSD-src-788547d4cf2856cc0d849f205d6384723345026b.tar.gz |
Changes to allow top to decide whether or not to show multiple threads per
process. Option -H enables it and it is toggled at the interactive
screen by 'H'.
Submitted by: Jung-uk Kim <jkim@niksun.com>
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 3 | ||||
-rw-r--r-- | usr.bin/top/top.local.1 | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index fd5a993..c998081 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -414,7 +414,8 @@ int (*compare)(); int show_command; - pbase = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nproc); + pbase = kvm_getprocs(kd, sel->thread ? KERN_PROC_ALL : KERN_PROC_PROC, + 0, &nproc); if (nproc > onproc) pref = (struct kinfo_proc **) realloc(pref, sizeof(struct kinfo_proc *) * (onproc = nproc)); diff --git a/usr.bin/top/top.local.1 b/usr.bin/top/top.local.1 index 6033b29..75489b7 100644 --- a/usr.bin/top/top.local.1 +++ b/usr.bin/top/top.local.1 @@ -1,5 +1,10 @@ +.\" $FreeBSD$ .SH "FreeBSD NOTES" +.SH DISPLAY OF THREADS +The '-H' option will toggle the display of kernel visible thread contexts. +At runtime the 'H' key will toggle this mode. The default is OFF. + .SH DESCRIPTION OF MEMORY Mem: 9220K Active, 1032K Inact, 3284K Wired, 1MB Cache, 2M Buf, 1320K Free Swap: 91M Total, 79M Free, 13% Inuse, 80K In, 104 K Out |