summaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.c
AgeCommit message (Collapse)Author
2001-12-05Get maxslp with sysctl. Not the constant.Artur Grabowski
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-06-03Use KERN_NPROCS to get the number of processes on the system, toAngelos D. Keromytis
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.
2001-02-22plug mem leak i introduced; spotted by millertTheo de Raadt
2001-02-17bye bye setgid kvmTheo de Raadt
2001-02-17do not use nlist anymore, kvm gets the bullet nextTheo de Raadt
2001-02-17partial KNF, because i cannot read the diffs i am trying to debugTheo de Raadt
2000-06-18Mark kernel threads as system processes. Make ps hide them by default,Niklas Hallqvist
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.
1999-11-14stathz instead of hz, plus improvements by me; camield@inet.unisource.nlTheo de Raadt
1999-10-29writenTodd T. Fries
1999-06-21stop casting the third argument to kvm_read to char *. it is a void *.Artur Grabowski
1999-05-22Update for new vmswap code.Tobias Weingartner
1998-11-28do not count swap spaces that were not swapon(2)edkstailey
1998-09-20cp_time is long, deal with it.Niklas Hallqvist
1998-09-20widen unsigned entities to signed ones before subtracting, fixes sorting on ↵Niklas Hallqvist
alpha
1998-08-21support "-o field" and the interactive "o" commandkstailey
1998-07-08whack kmem gid after kvm_openfiles()Theo de Raadt
1998-06-25handle missing swapTheo de Raadt
1997-11-08Sort idle processes by total CPU usage, not cpticks since cpticksTodd C. Miller
get zeroed every second; dan@dan.emsphone.com
1997-09-09"last pid" stuff is useless with random pids.Todd C. Miller
1997-09-09Use kvm_openfiles() not the sunos compat kvm_open().Todd C. Miller
Use warn/warnx where it makes sense and check some more ret vals.
1997-08-24Fix compiler warnings.Todd C. Miller
1997-08-22Two more alpha warnings.Jason Downs
1997-08-22First sweep. Prototype, type fixes, long fixes, mostly compiles withJason Downs
-Wall.
1997-08-17print "idle" for idle processeskstailey
1997-08-14top 3.4, with a few changes. Still needs more work.Jason Downs