summaryrefslogtreecommitdiffstats
path: root/usr.bin/top/machine.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* simplify loop iterationpat2004-11-221-3/+3
| | | | ok otto millert
* off-by-one in process_states[], fixes display of memory; ok deraadt, aaronmarkus2004-11-171-3/+3
|
* introduce -p option and p command to only show a single process.otto2004-10-071-4/+6
| | | | From Patrick Latifi. ok deraadt@ millert@
* Typos in comments and a redundant prototype. From Brian Poole via jmc@otto2004-06-131-2/+2
| | | | ok jmc@
* handle the KI_NOCPU case, pointed out by markusderaadt2004-06-111-2/+2
|
* only print /# if > 1 cpu on a machinederaadt2004-06-111-4/+16
|
* export cpuid via kproc2, and make ps & top aware... from niklasderaadt2004-06-111-5/+15
|
* hide top breakage, until the next commit which will do it rightderaadt2004-06-111-2/+2
|
* spacesderaadt2004-05-091-4/+4
|
* Convert to kinfo_proc2; ok deraadt@millert2004-01-081-89/+75
|
* protosderaadt2003-07-071-9/+9
|
* remove unused variablesderaadt2003-06-181-9/+6
|
* properly typecast to uid_t the return value of proc_owner() and reportjfb2003-06-171-3/+3
| | | | | | ESRCH instead of EACCES if it returns -1 ok millert@
* use uid_t and fix some sign compare warnings; OK krw@ and deraadt@millert2003-06-151-6/+6
|
* use correct length instead of sizeof(char *) for some strl* bound valuesavsm2003-06-141-4/+4
| | | | millert@ ok
* readable codederaadt2003-06-131-101/+16
|
* knfderaadt2003-06-121-148/+137
|
* cleanup; ok deraadtpvalchev2003-06-121-35/+16
|
* Add missing copyrighttholo2002-07-021-1/+28
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* Get maxslp with sysctl. Not the constant.art2001-12-051-3/+12
|
* first pass at a -Wall cleanupderaadt2001-07-121-8/+2
|
* Use KERN_NPROCS to get the number of processes on the system, toangelos2001-06-031-5/+6
| | | | | | determine the amount of space we'll need to store the information. The alternative, calling sysctl() with a NULL argument for data, meant the kernel had to go through the process table.
* plug mem leak i introduced; spotted by millertderaadt2001-02-221-2/+4
|
* bye bye setgid kvmderaadt2001-02-171-29/+43
|
* do not use nlist anymore, kvm gets the bullet nextderaadt2001-02-171-83/+10
|
* partial KNF, because i cannot read the diffs i am trying to debugderaadt2001-02-171-529/+439
|
* Mark kernel threads as system processes. Make ps hide them by default,niklas2000-06-181-2/+2
| | | | | | show them with -k. Do not try to show RSS based values for them as they mess up column alignment. vmstat -f now shows kernel threads separately from rforks too.
* stathz instead of hz, plus improvements by me; camield@inet.unisource.nlderaadt1999-11-141-10/+20
|
* writentodd1999-10-291-2/+2
|
* stop casting the third argument to kvm_read to char *. it is a void *.art1999-06-211-2/+2
|
* Update for new vmswap code.weingart1999-05-221-150/+27
|
* do not count swap spaces that were not swapon(2)edkstailey1998-11-281-4/+6
|
* cp_time is long, deal with it.niklas1998-09-201-4/+4
|
* widen unsigned entities to signed ones before subtracting, fixes sorting on alphaniklas1998-09-201-2/+2
|
* support "-o field" and the interactive "o" commandkstailey1998-08-211-13/+212
|
* whack kmem gid after kvm_openfiles()deraadt1998-07-081-1/+4
|
* handle missing swapderaadt1998-06-251-1/+6
|
* Sort idle processes by total CPU usage, not cpticks since cpticksmillert1997-11-081-3/+3
| | | | get zeroed every second; dan@dan.emsphone.com
* "last pid" stuff is useless with random pids.millert1997-09-091-26/+2
|
* Use kvm_openfiles() not the sunos compat kvm_open().millert1997-09-091-17/+19
| | | | Use warn/warnx where it makes sense and check some more ret vals.
* Fix compiler warnings.millert1997-08-241-2/+2
|
* Two more alpha warnings.downsj1997-08-221-4/+4
|
* First sweep. Prototype, type fixes, long fixes, mostly compiles withdownsj1997-08-221-16/+17
| | | | -Wall.
* print "idle" for idle processeskstailey1997-08-171-2/+3
|
* top 3.4, with a few changes. Still needs more work.downsj1997-08-141-0/+818