Commit Graph

90 Commits

Author SHA1 Message Date
dogcow 444e690921 Remove various dotfiles that wandered their way in. 2006-06-18 08:59:39 +00:00
christos a58e08b7cf XXX: GCC uninitialized. 2006-05-14 03:00:45 +00:00
christos 10416487f0 Don't malloc/free the swap pointer with each refresh! Do it only if the
number of swap devices change. Now (and with the kvm fixes) top does not
allocate/free memory on each refresh.
2006-02-16 20:50:57 +00:00
rpaulo b17222de0e Mention uptime display. 2005-10-10 10:09:17 +00:00
christos 180fd9f68f PR/31452: Zafer Aydogan: Show uptime in top display (written by Simon Burge) 2005-10-03 05:34:51 +00:00
yamt fdeeeda1ac remove a wierd blank line in the case of -b. 2005-07-19 12:24:39 +00:00
christos fa2b48914c Instead of printing the raw cpu_id, print the logical cpu number. The raw
cpuid values may not be contiguous, or come in ascending order, so this
makes the cpu value of each process display match the summary display on
top.
2005-06-16 14:58:51 +00:00
lukem 9aeda3fd63 appease gcc -Wuninitialized 2005-06-02 03:11:23 +00:00
simonb c13bbf038d Make a comment line up nicely. 2005-01-24 10:38:47 +00:00
dsl 7f6459c7a3 Add (unsigned char) cast to ctype functions
Change some variables from register char to int
2004-11-04 07:35:15 +00:00
wiz fce3c402ee Sort options in usage and SYNOPSIS, and adapt usage to man page.
From Kouichirou Hiratsuka in PR 26279.
2004-07-23 13:31:50 +00:00
wiz 9c97cd1d5a Uppercase CPU. 2004-07-23 13:29:17 +00:00
wiz d33e19fa7e Drop trailing whitespace. 2004-07-23 13:28:55 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem c545cc169d support MAKEVERBOSE 2003-10-19 04:30:30 +00:00
itojun d5250e4ec9 safer use of realloc 2003-10-16 06:34:19 +00:00
christos 72eafe083f On MP systems, print a line for each cpu describing cpustate. 2003-10-03 15:32:06 +00:00
itojun ccbbb1b94c fix comment; FD_SET is not used any longer 2003-08-20 03:35:38 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
salo 0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
itojun 5389fc55da bound string operations 2003-07-12 14:08:37 +00:00
agc a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
lukem d8108972ba add dependency on sigdesc.h to commands.c 2003-03-14 22:56:14 +00:00
jrf c93c016461 Patch from PR 12304 submitted by Matthias Buelow mkb@moghedien.mayn.de.
Patch reviewed by Itojun itojun@netbsd.org.
2003-03-05 01:10:46 +00:00
thorpej 3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
mycroft aae6c28cf9 null commit 2002-09-23 12:44:34 +00:00
itojun 6248b5281d poll.h, not sys/poll.h 2002-09-23 03:29:10 +00:00
mycroft 05abee23d9 select() -> poll(), nanosleep() 2002-09-19 16:45:57 +00:00
chris 624b632030 Fix segv when running show_help.
Seems that copyright had it's type changed, but not the extern.
2002-08-02 20:03:36 +00:00
itojun 72b53650e0 copyright cleanup from openbsd (thanks!)
>license change from William LeFebvre <wnl@groupsys.com>; top is now BSD
>licensed.  this same license will show up on his next release as well.
2002-07-16 00:40:51 +00:00
wiz 3e61c2fc6e Remove STDC ifdefs. 2002-06-13 23:28:57 +00:00
thorpej b9145634cd Update top(1) for new UVM/UBC counters.
bin/16020, Tomas Svensson <tsn@gbdev.net>
2002-03-23 01:28:10 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tv d56a8ceeec Make this directory usable on a case insensitive fs. 2002-01-21 20:07:34 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
hubertf 6e25baad1d /vmunix => /netbsd
Reported by Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp> in PR 14513
2001-11-09 16:32:16 +00:00
christos 1703d1eee6 Update to the new t_agetstr() API. 2001-11-02 18:27:00 +00:00
christos 49fc99e479 print system processes as [procname] 2001-07-03 01:36:07 +00:00
wiz dad52345fd Sync with top.1 v1.6. 2001-06-21 21:36:23 +00:00
wiz d6232cb1ae Fix some typos and grammar. 2001-06-21 21:36:05 +00:00
wiz c384a41e3f Turn -S (display of system processes) on by default.
If they are using so much CPU that they would be in the top 10 (or so)
they should be shown. Ok'd by christos.
2001-06-21 21:27:50 +00:00
christos d8401d9eac document 'S' command (thanks thomas) 2001-06-20 22:32:17 +00:00
christos 6008bb4486 add a command ('S') to toggle display of system processes.
It is annoying to have to quit and use top -S to toggle.
2001-06-20 19:56:35 +00:00
wiz 3f9984fc90 `existent', not `existant' 2001-06-19 13:42:07 +00:00
christos 3eced62df6 bring in fixes from beta12:
- better error checking for read/write failures
	- new install/configure/Makefile and support scripts (we don't use)
	- don't allow 0 delay for non-root accounts
XXX: Someone needs to coordinate to feed back our prototype fixes to Jeff!
2001-05-22 15:38:22 +00:00
abs 5416ac320c if the read() on stdin for a command fails, exit.
This stops top ending up in an infinite cpu churning loop if the tty detaches,
or if something similar to 'top < /dev/null' is run.
2001-04-12 14:10:05 +00:00
enami 4be646f78d s/Swap/Swp in Memory: line.
XXX: Strictly speaking, we must chop off two more characters from this line
XXX: so that the line fits in single line.
2001-01-30 13:29:58 +00:00
enami 044efd32f8 Print a process state except sleeping in capital letter, and
print wait channel for sleeping process.  While I'm here, document that
the STATE field may be followed by /cpu-number on multi-processor system.
2001-01-23 23:03:49 +00:00
sommerfeld 6553cce562 on multiprocessor, display last cpu for SSLEEP state, too. 2000-12-30 14:26:50 +00:00