summaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.c
AgeCommit message (Expand)Author
2020-06-23Remove redundant NULL checkkn
2020-01-06Implement scrolling in top(1) using 9 and 0 keys.Vadim Zhukov
2019-12-16Delete tests for P_THREAD that predate the existence ofPhilip Guenther
2019-10-08Simplify threads flag handlingkn
2019-10-06Avoid gasting around get_process_info()kn
2019-10-06Zap intermediate structs in compare_*()kn
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-11-28Allow reverse sort orderkn
2018-11-17Add new KERN_CPUSTATS sysctl(2) so we can identify offline CPUs.cheloha
2018-10-05Revert KERN_CPTIME2 ENODEV changes in kernel and userspace.cheloha
2018-09-26KERN_CPTIME2: set ENODEV if the CPU is offline.cheloha
2018-09-22Use user_from_uid() and uid_from_user() directly. The wrappersTodd C. Miller
2018-09-13Fix warnings caused by user_from_uid() and group_from_gid() nowTodd C. Miller
2018-05-14Stopping counting and reporting CPU time spent spinning on a lock asMartin Pieuchot
2017-05-30avoid some shadow warnings. from Brian CallahanTed Unangst
2017-03-15annoying whitespace die die dieTheo de Raadt
2016-07-28rework realloc loop. there's no need to shrink the allocation betweenTed Unangst
2016-05-11Allow top(1) to filter process args if they are being displayed.Edd Barrett
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
2015-05-06Display thread IDs instead of the name of the process's owner when "-H"Martin Pieuchot
2015-01-19Kill loadavg.h and just use the fscale value directly.Todd C. Miller
2015-01-19like in ps(1), fetch the FSCALE value using sysctl rather than usingTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-09-17if there are more than 8 cpus, default to combined cpu stats (likeDavid Gwynne
2014-09-15Remove non-standard <sys/dkstat.h> header. It has not contained anythingMiod Vallat
2014-07-04Track whether a process is a zombie or not yet fully built via flagsPhilip Guenther
2014-04-08Use VM_UVMEXP instead of VM_METER for memory usages and directlyMartin Pieuchot
2013-03-23wchan is no longer exposed, just check if wmesg is not empty.Ted Unangst
2012-12-18We no longer use struct eproc for kinfo_proc in sysctl.h so thereTodd C. Miller
2012-07-09According to miod, KERNBASE used as a userland symbol should dieTheo de Raadt
2012-06-05Add support for hiding a user's processes in top.Bryan Steele
2012-04-21Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.Philip Guenthe
2012-04-17Make it optional for kvm_getprocs() (and related sysctl) to returnPaul Irofti
2012-04-12Add per thread accounting, mainly for usage & friends.Paul Irofti
2011-07-12print out the amount of memory used for cache. ok ottoTed Unangst
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