summaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.c
AgeCommit message (Expand)Author
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenthe
2010-04-26more portable codeTheo de Raadt
2010-03-26Make the source of process TIME for displaying and sorting the same.lum
2010-01-29Allow sorting by command and pid. Also, allow partial matches with strncmp.Ted Unangst
2009-04-28extend STATE column to fit > 9 cpus; Aivar Jaakson; PR6131Theo de Raadt
2007-11-01bump arbitrary limit on arg length shown by -C; requested by and ok deraadt@Otto Moerbeek
2007-07-27replace a few more malloc(n*m) idioms with calloc(n,m) for safety;Theo de Raadt
2007-05-29Instead of using hand-crafted redraws minimizing screen updates, use curses.Otto Moerbeek
2007-04-16don't truncate wchan, ok miod@Otto Moerbeek
2007-04-13include cleanup and fix in comment; from Mark LumsdenOtto Moerbeek
2007-04-04missing prototypes; from Mark Lumsden with a twist by me.Otto Moerbeek
2007-02-04long and long long is not the same on 32 bits archsOtto Moerbeek
2007-01-03Add a 'g' command to only show processes having a string in theirOtto Moerbeek
2007-01-02top(1) doesn't use any math.h function, so do not include math.h andOtto Moerbeek
2006-11-29Do not test for processes being swapped out since this can't happen anymore.Miod Vallat
2006-09-20Recommit memory leak fix.Ray Lai
2006-04-29use calloc(3) instead of malloc(3) to allocate cpu state structs; it'sOtto Moerbeek
2005-12-21Userland programs should include <errno.h> not <sys/errno.h>Todd C. Miller
2005-12-04support for toggling thread viewing.Ted Unangst
2005-06-17add a 'C' command ) that toggles the display of the full cmdline;Markus Friedl
2005-06-08Multi-cpu support for top. Each cpu now gets its own stats line.Todd C. Miller
2004-12-06missing space; bluhm at genua.deMarkus Friedl
2004-11-22simplify loop iterationPatrick Latifi
2004-11-17off-by-one in process_states[], fixes display of memory; ok deraadt, aaronMarkus Friedl
2004-10-07introduce -p option and p command to only show a single process.Otto Moerbeek
2004-06-13Typos in comments and a redundant prototype. From Brian Poole via jmc@Otto Moerbeek
2004-06-11handle the KI_NOCPU case, pointed out by markusTheo de Raadt
2004-06-11only print /# if > 1 cpu on a machineTheo de Raadt
2004-06-11export cpuid via kproc2, and make ps & top aware... from niklasTheo de Raadt
2004-06-11hide top breakage, until the next commit which will do it rightTheo de Raadt
2004-05-09spacesTheo de Raadt
2004-01-08Convert to kinfo_proc2; ok deraadt@Todd C. Miller
2003-07-07protosTheo de Raadt
2003-06-18remove unused variablesTheo de Raadt
2003-06-17properly typecast to uid_t the return value of proc_owner() and reportJean-Francois Brousseau
2003-06-15use uid_t and fix some sign compare warnings; OK krw@ and deraadt@Todd C. Miller
2003-06-14use correct length instead of sizeof(char *) for some strl* bound valuesAnil Madhavapeddy
2003-06-13readable codeTheo de Raadt
2003-06-12knfTheo de Raadt
2003-06-12cleanup; ok deraadtPeter Valchev
2002-07-02Add missing copyrightThorsten Lockert
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
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
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