summaryrefslogtreecommitdiff
path: root/usr.bin/top
AgeCommit message (Collapse)Author
2012-07-09According to miod, KERNBASE used as a userland symbol should dieTheo de Raadt
in a fire. Start by removing the definitions, before we clean the headers later.
2012-06-08Add checks for command line input (or the TOP environment var)lum
ommitted from 1.78. Now a $ top -U -username -U username command will behave the same as interactive mode. ok brynet@
2012-06-06tweak previous;Jason McIntyre
2012-06-05Add support for hiding a user's processes in top.Bryan Steele
feedback & ok lum@
2012-04-21Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.Philip Guenthe
This lets new binaries work (at least w/o the -H option) with old kernels. ok pirofti@ deraadt@
2012-04-20Silence warnings. Okay deraadt@.Paul Irofti
2012-04-17Make it optional for kvm_getprocs() (and related sysctl) to returnPaul Irofti
thread information. Add a KERN_PROC_SHOW_THREADS flag that has to be set in order to get the thread info and make it off by default. This creates backwards compatibility for applications that relied on a given size/number of items to be returned. Modify ps(1) and top(1) accordingly. Okay guenther@.
2012-04-15Move the check for a <0 number of process display_lines to a better place.lum
This makes: This terminal can only display -N processes. a thing of the past.
2012-04-12Add per thread accounting, mainly for usage & friends.Paul Irofti
This expands the already bloated FILL_KPROC macro to take an extra parameter that indicates if the callee is a thread or a process. The userland bits are adjusted accordingly and ps(1) and top(1) now display per thread usage times when -H is used. Also pkill(1) had to be adjusted so that duplicates don't pop up. libkvm does basically the same thing as the kernel bits. Okay guenther@.
2011-12-16Use H to make top show process threads, instead of the current T. This isJoel Sing
consistent with our ps(1) and top(1) on other operating systems. ok deraadt@ mikeb@ millert@
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
that we've got name we want for the API we want "ZAP!" deraadt@
2011-03-25clarify the description of the `1' command;Jason McIntyre
from David Vasek and Glen Anderson
2010-08-10add a description for bsd.sp where appropriate; while here, writeIgor Sobrado
"multiprocessor" in a consistent way. written with lots of good advice from jmc@, who noted that changing hier(7) was not enough and carefully reviewed this diff. ok jmc@
2010-04-26more portable codeTheo de Raadt
2010-04-24delete two extra ; that got inserted somewhere along the lineTheo de Raadt
2010-04-23mention hostname, prompted by lum@Otto Moerbeek
2010-04-23show hostname in header line; ok lum@ phessler@Otto Moerbeek
2010-04-21Handle a strdup failure.lum
ok otto@
2010-04-01Allow top to accept tab characters as input in interactive modelum
while using the kill and renice commands. This removes a bug where process numbers that came after a tab character in the input string would not be affected by the corresponding command. ok tedu@ otto@
2010-03-26Remove unnecessary ptr.lum
ok otto@
2010-03-26Make the source of process TIME for displaying and sorting the same.lum
top(1) and ps(1) now display the same info. ok tedu@ millert@ otto@ and tested on sparc64 by landry@
2010-03-24Document updating the display using the space-bar.lum
ok jmc@ otto@
2010-03-23Fix pointer usage with the renice and kill error message structure. Pointer ↵lum
was used without allocating memory. ok beck@ otto@
2010-03-22make argument check for '-s' cli option and interactive 's' consistent. ok otto@lum
2010-03-18make the 'e' command work, from Mark LumsdenOtto Moerbeek
2010-03-18While resizing, show correct CPU stats, from Mark LumsdenOtto Moerbeek
2010-03-18zap -g that sneaked in some time agoOtto Moerbeek
2010-02-05Header_lines always has the same value as y_procs; so zap the former;Otto Moerbeek
from Mark Lumsden.
2010-01-29Allow sorting by command and pid. Also, allow partial matches with strncmp.Ted Unangst
ok jmc otto
2009-12-22add `1' to the interactive command list too; from Mark LumsdenJason McIntyre
2009-12-22add -1 to show_help(); from Mark LumsdenJason McIntyre
2009-12-10better wording for 1 option from jmcTed Unangst
2009-12-10add an option '1' to display all cpu stats combined. helps save spaceTed Unangst
with increasing processor counts. ok deraadt (kettenis otto)
2009-07-22enter_user() is only called in one way, rendering the third parameterTheo de Raadt
useless; from mark@cyodesigns.com
2009-07-18restore -S as toggle;Jason McIntyre
from Mark Lumsden ok oga
2009-06-04with -d1, switch interactive mode off, so the screen isn't restoredStuart Henderson
immediately afterwards on a smart terminal. found by claudio@. "I like that diff" deraadt "yes please!" phessler "I think that makes sense" claudio
2009-04-28extend STATE column to fit > 9 cpus; Aivar Jaakson; PR6131Theo de Raadt
2008-09-24remove unused functionCharles Longeau
from tobias@ ok otto@ tobias@
2008-04-02using getpwent() in a loop is so 1980; ok millertTheo de Raadt
2007-11-30Simplify process header display logic a bit. From Mark LumsdenOtto Moerbeek
2007-11-29fix small glitch in displaying process list header; from Mark LumsdenOtto Moerbeek
2007-11-27use symbolic constant 'Infinity' instead of -1 where appropriate; fromOtto Moerbeek
Mark Lumsden
2007-11-22Diff from Mark Lumsden: cleanup of reading strings and numbers, toOtto Moerbeek
make sure command line args and interactive reading of numbers use the same code. More concrete, interactive use of 'd' and 'n' now also interpret 'max', 'infinite' and 'all' and handle non-numbers correctly. tested by a few
2007-11-17oops - fix dodgy -width specifier too;Jason McIntyre
2007-11-17talk about "user" consistently; from Mark LumsdenJason McIntyre
2007-11-06prevent segv on wrong sort name; Mark Lumsden.Otto Moerbeek
2007-11-04Also show warning message for -U and -p in message area; noted by MarkOtto Moerbeek
Lumsden
2007-11-04Get rid of the very annoying warning message + delay when a commandOtto Moerbeek
line argument is wrong. Just display the message in the message area. ok deraadt@ sobrado@ simon@ henning@
2007-11-01make check on -s and interactive s consistent; from Tilo StritzkyOtto Moerbeek