summaryrefslogtreecommitdiffstats
path: root/usr.bin/top
Commit message (Collapse)AuthorAgeFilesLines
* Catch up to proc flag change.jhb2001-01-241-1/+1
|
* Change the proc information returned from the kernel so that itmckusick2000-12-121-47/+43
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* Make use of the full screen width to display p_comm rather than assuming ajhb2000-11-291-3/+6
| | | | hardcoded screen width of 80 chars.
* Display the name of the mutex we are blocked on in the state field. Tojhb2000-11-291-0/+6
| | | | | | | differentiate mutex names from wait channel names, prefix mutex names with an asterisk. Submitted by: Dan Nelson <dnelson@emsphone.com>
* Major update to the way synchronization is done in the kernel. Highlightsjasone2000-09-071-3/+3
| | | | | | | | | | | | | | | include: * Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The alpha port is still in transition and currently uses both.) * Per-CPU idle processes. * Interrupts are run in their own separate kernel threads and can be preempted (i386 only). Partially contributed by: BSDi (BSD/OS) Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh
* Reduce max length of user names to 15 characters to reflect reality.davidn1999-11-171-2/+2
| | | | | This also prevents the line-wrap and messed up display that occurs when there happens to be one or more names with 15 chars.
* Fixed sorting on time. On i386's, time differences of more than 2147bde1999-11-171-9/+9
| | | | | | | | | | | | seconds caused overflow. Use a type-safe but slightly slower comparison. Comparisons for other fields are still fragile. Fixed rounding of cputime (don't do extra work to get it slightly wrong by first converting without rounding to milliseconds). Removed dead code for setting cputime. Fixed comments about cputime.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Man pages for top refer to only 2.x, but not to 3.x and latern_hibma1999-06-142-4/+4
|
* Tidy up references to <sys/rlist.h> and support for the old swap managementpeter1999-05-111-2/+1
| | | | that went away in January.
* Fix the display of the "nice" value of processes like ntpd that use thejhay1999-04-221-2/+2
| | | | | | posix sched_setscheduler() to set their priority. Noticed by: Mark Allwright <mallwri@orion.didata.co.za>
* Oops, the test for "no-cpu" was inverted.bde1999-03-071-2/+2
| | | | Submitted by: Seigo TANIMURA <tanimura@naklab.dnj.ynu.ac.jp>
* The magic "no-cpu" cpu number is 0xff. Don't misrepresent cpubde1999-03-051-2/+2
| | | | | | numbers as chars or use bogus casts in an attempt to unmisrepresnt them. In top, don't assume that 0xff is the only negative cpu number when cpu numbers are (mis)represented.
* Don't dump core when p_stat is not in the expected range. This isfenner1999-02-061-3/+9
| | | | | | only likely to happen when you have a kernel<>userland mismatch, but it's really annoying when top dumps core and leaves the terminal in a mangled state; it's much nicer to print nicely formatted gibberish.
* Make 'top' handle case w/ new swapper where no swap is configureddillon1999-02-061-2/+2
|
* Make top use new kvm_getswapinfo() call.dillon1999-01-221-144/+19
|
* uptime display more in style with original codeobrien1999-01-091-1/+19
|
* Removed unused nlist'ed variables stathz and hz. These used to be usedbde1998-11-261-26/+13
| | | | | | | | to half compensate for broken scaling of p_pctcpu in the kernel, but the previous commit removed this compensation. %cpu values will be wrong by a factor of stathz/hz until the kernel is fixed. (The kernel gets it wrong by a factor of stathz/hz, and top got the compensation wrong by a factor of 100/stathz.)
* Port top to the alpha.dfr1998-11-251-4/+4
| | | | Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Some fixes for swap space accounting.dt1998-09-111-2/+7
| | | | Obtained from: pstat.c
* Merge from stable: support for the o, order, commandwosch1998-08-122-30/+178
|
* Add -t option ('t' in interactive mode) to make top(1) ignore itself.des1998-08-041-1/+4
| | | | | | | | Attempts to contact the author of top(1) (William LeFebvre) have so far been unsuccessful. PR: 7253 Submitted by: Yours Truly
* Round - not cut - the real cpu time.wosch1998-07-271-2/+3
|
* Make value of SIZE accurate.dt1998-06-211-3/+3
| | | | Obtained from: ps(1)
* Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.phk1998-05-281-3/+3
| | | | | | | | | | | | | | | | | | | | Clean up (or if antipodic: down) some of the msgbuf stuff. Use an inline function rather than a macro for timecounter delta. Maintain process "on-cpu" time as 64 bits of microseconds to avoid needless second rollover overhead. Avoid calling microuptime the second time in mi_switch() if we do not pass through _idle in cpu_switch() This should reduce our context-switch overhead a bit, in particular on pre-P5 and SMP systems. WARNING: Programs which muck about with struct proc in userland will have to be fixed. Reviewed, but found imperfect by: bde
* Fix top sorting of idle processes. top used p_cpticks as a tie-breakerpeter1998-02-141-3/+3
| | | | | | | but that isn't suitable (it gets zeroed each second apparently). PR: bin/4957 Submitted-by: Dan Nelson <dnelson@emsphone.com>
* For SMP, add a space between the state name and the CPU#.fsmp1997-10-051-3/+3
| | | | Everything following bumps right 1 character.
* YAMF22: (rev 1.3.2.2) Display realtime and idle priorities appropriately.peter1997-09-281-2/+14
|
* Adapt to recent smp tree changes..peter1997-08-271-2/+3
|
* Added top.1 to CLEANFILES.bde1997-07-211-0/+1
|
* Hack to work around the large username field... scan for the largestpeter1997-07-141-19/+25
| | | | | | username present on the system at startup and use that for the field width. It's not ideal but (I think) better than it was before. The width is limited to within 8..16.
* Dynamically adapt to smp mode at runtime. This stops the cpu columnpeter1997-07-121-22/+24
| | | | appearing on uniprocessor systems since the smp->current merge.
* Long usernames fixesache1997-04-211-5/+5
|
* Tweak column headers a tad for when running in SMP mode.peter1997-04-191-2/+2
|
* move top.1 -> top.local.1, and generate top.1 so that the man pagepeter1997-04-051-0/+3
| | | | is remotely useful
* Remove libcurses, it is pure termcap applicationache1997-03-241-2/+2
|
* This is the FreeBSD-specific files for top, plus the Makefilejoerg1997-03-235-0/+1117
that pulls all the files from contrib. Obtained from: The ports collection (mostly).
OpenPOWER on IntegriCloud