Commit Graph

141 Commits

Author SHA1 Message Date
jwise 099afa1959 End special-casing of `start' and `interval' global commands.
Vastly simplify handling of mode switches, and short-syntax interval
changes.  Substring matching of mode names and commands will come
shortly, however the previous method of substring matching modes (it was
not available for commands) is currently not working.

TODO: implement table lookups for mode-specific commands.
1999-12-16 06:16:16 +00:00
jwise 420c21c43c Handle arguments to global commands. Note that the `interval' and
`start' global commands are still special cased, which will change
1999-12-16 04:49:32 +00:00
jwise b5f0c03b3a Backout unintended change 1999-12-16 04:41:49 +00:00
jwise 7fc29b6116 Add a file missed in last commit 1999-12-16 04:40:03 +00:00
jwise 06f376613f Rototill global command matching -- switch from ad-hoc tomfoolery to a
table lookup.  This will make prefix matching and so on easier.

Expect a similar change for mode-specific commands before too long.

While there, rename some structures with misleading names.

Watch this space for more changes soon.
1999-12-16 04:02:22 +00:00
fredb 2cfe71bc9a More fallout from CL* purge. 1999-12-05 18:54:34 +00:00
mrg ef2d33cbd1 add some percentages in here. 1999-11-27 05:58:04 +00:00
simonb 7f7397e603 Don't free "buf" in closebufcache() - initbufcache() only gets called
once per systat invocation, not each time we switch to the bufcache
display.

Fixes core dump noted by Andy Doran when switching back and forth to
bufcache display.
1999-11-15 23:39:33 +00:00
mrg 9042b087c4 avoid using CLBYTES (which is based on NBPG). 1999-11-15 10:54:40 +00:00
simonb b80f4eaf1d - Add `bufcache' display which shows buffer cache usage per filesystem,
ala the monitor(1) command for Ultrix.
- Allow `h' or `?' to show the command list (same as `:help').
- Sort commands in cmdtab.c and systat.1
1999-11-15 06:16:56 +00:00
soren 6fc41af333 Sync usage() with man page. 1999-11-11 03:06:04 +00:00
mrg 45cd15f3ed recognise "dty" the same as we do "tty" 1999-10-11 11:55:27 +00:00
mrg 345a3bce75 let "systat vmstat" say "1 user" not "1 users" 1999-10-10 01:07:03 +00:00
soren a87871bbec There's room in the systat-vmstat-iostat display, so allow four-letter
device names like e.g. ccd0 and print an extra digit of precision in
the 'sec' line like iostat(8) does.
1999-09-30 13:16:27 +00:00
chs 21eedb0ec1 the PMAP_NEW option is gone as the new interface is no longer optional. 1999-09-12 01:19:23 +00:00
ad aa707bd962 Add 'inet.' prefix to 'tcp', 'ip', 'tcpsyn' and 'icmp' displays.
Fixes PR: bin/8130 (Geoff C. Wing)
1999-08-02 17:27:27 +00:00
sommerfeld 728f40d730 Fix from PR7655: translation of keyboard command in systat is Wrong.
(breaks netstat's :ignore command for upper-case service names)
1999-08-02 02:01:57 +00:00
ad 5cd8715136 Formatting nits. 1999-07-30 16:08:59 +00:00
veego 03fd106af5 According to the previous commit the new process state should be SDEAD and
not SDYING, so s/SDYING/SDEAD/.
1999-07-23 08:56:13 +00:00
thorpej 3586621927 Update for SDEAD. 1999-07-22 18:16:05 +00:00
mjl d278ba3869 Enlarge disk names in labels from 3 to 7 to cater for things like raid0. 1999-06-29 18:14:15 +00:00
itohy 5bebc476c6 Fix CPU percentage of "systat ps".
Yes, the name of the member "pt_pctcpu" is confusing :-).
Use double instead of float.
1999-06-19 05:35:14 +00:00
ad 00116cf582 Add 4 new modes: ip, icmp, tcp, tcpsyn. XXX still some work to be done
on aesthetics and update modes.
1999-05-30 20:26:20 +00:00
lukem 3d538e05b6 also install as `sysstat'.
rationale: `nfsstat' is not `nfstat', and
other systems have a `sysstat' but not a `systat'.
1999-04-29 15:00:21 +00:00
ross c28735c5a8 Kill incorrect const in previous. 1999-04-24 23:54:56 +00:00
ross ef4ee3d458 Functional LP64 and type sanity fixes. 1999-04-24 23:36:36 +00:00
simonb 8ac2197100 Add an __RCSID. 1999-04-22 03:40:46 +00:00
mrg d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
bgrayson 394d687b13 Minor printf mod, for when we print a 3-digit value, and the next update prints only two (leaving the last stale digit showing) 1999-03-04 03:02:02 +00:00
jwise 2dada8cc9b Document the new `ps' view. 1999-02-21 21:55:10 +00:00
jwise cfb46b6f4c Add a new `ps' view to systat, which shows process information. This
view is identical to the output of `ps aux' except that a.) the RSS and VSZ
fields are one character wider and b.) it shows a zero value for the RSS
and %MEM columns of processes which report a negative RSS.
1999-02-21 21:48:07 +00:00
jwise 063b11670a Add cross-references from eaach of these too the other. Note that top.1
is still in old man format.  Do we want to translate this to mandoc?  I
assume no, as this would make imports hard, so I didn't, but I'm not sure
what the best way to do this would be.
1999-02-19 18:44:58 +00:00
jwise 7e6a90d4b9 Show pid as well as user name and command in pigs view. Makes hopping to
another window and killing the errant process (or even just distinguishing
it from like processes) rather easier.
1999-02-19 04:59:00 +00:00
mrg 6efa5f3017 swap areas are not compiled into the kernel, from erik bertelsen, PR#6892 1999-01-28 03:28:53 +00:00
marc e803638497 since the return from swapctl can change from call to call, print the
"Disk" column each time.  Also, use sep->se_path, not
devname(sep->se_dev).
1998-12-26 07:05:08 +00:00
marc a97b85feaf display the seconds in the timestamp in the corner, too. 1998-12-26 06:38:42 +00:00
christos 24a4a811e5 char -> unsigned char 1998-12-19 22:26:13 +00:00
drochner 09eb0ffc9c avoid integer overflow in free memory report 1998-12-19 14:34:40 +00:00
mycroft 33360720ab Add missing braces, so PUTRATE() works correctly as an if clause. 1998-12-06 16:53:44 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
mycroft 28beaae04f const propagation. 1998-07-28 21:25:35 +00:00
drochner b2058e2f38 Fix handling of privileges - the gid was given up before dkinit()
was called.
Pass the gid to use for KVM access explicitely to dkinit(), the caller
decides whether to call setgid(getgid()) or not.
1998-07-19 17:47:07 +00:00
mrg 47abaab886 - KNF
- use snprintf
- don't overwrite the keyboard buffer (and make this sized on
  the window size).
1998-07-12 05:59:00 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
mycroft 1458227184 Fix pasto. 1998-05-17 18:18:18 +00:00
mycroft 746eb495af Don't display %cpu for zombies. It never decays, and makes the results look
odd.
1998-05-17 17:18:28 +00:00
kleink 7fd3999c5e No need to include <sys/socketvar.h>. 1998-04-02 11:18:25 +00:00
jtc 9a0063c6d6 Simply include -lcurses instead of -lcurses -ltermcap 1998-02-18 22:47:41 +00:00
perry ba7b5f16ff add -DPMAP_NEW if PMAP_NEW is on in mk.conf 1998-02-18 03:54:58 +00:00
mrg 45eb2a7d5d clean up memory totals in UVM case. 1998-02-09 15:29:52 +00:00
mrg 7bd27d00fd make "systat vmstat" much much much more UVM friendly. 1998-02-09 14:14:43 +00:00
mrg 279ce528ce add -DUVM to CPPFLAGS if defined(UVM) 1998-02-09 06:25:15 +00:00
mrg e42b5e70e3 build and run with -DUVM. this isn't yet finished but it does run and partially work. 1998-02-07 14:08:23 +00:00
lukem 8ba07ab0b3 use CPPFLAGS instead of CFLAGS 1997-10-24 09:00:17 +00:00
lukem 9ccb9cd874 fix .Nm usage, deprecate register, getopt returns -1 not EOF, s/[br]*/[ms]*/ 1997-10-19 23:36:20 +00:00
kleink 66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
mrg d2be95ea7e update "systat vmstat" documentation to reality. 1997-07-25 01:59:42 +00:00
mrg 9fb5074a33 get at least *part* of "systat vmstat" right... 1997-07-25 01:15:09 +00:00
mrg 5941399374 - some KNF.
- use __RCSID().
- WARNS=1
1997-07-21 07:04:56 +00:00
mrg cd53f1ab76 WARNS?=1 1997-07-21 07:03:52 +00:00
mrg 1e987690a8 - some KNF.
- use __RCSID().
- WARNS=1
- use swapctl(2), rather than grovelling KVM.
1997-07-21 07:03:15 +00:00
jtc 8fd3f56f2c Use the new getmaxx and getmaxy macros instead of directly accessing
the private fields of WINDOW.
1997-05-24 00:48:24 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
mikel 53704bc733 erase old Xs when printing new ones for swap usage; from Paul Boven in
PR bin/3431 with some changes by me.
1997-04-03 06:07:40 +00:00
explorer a030e0a1ae Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:12:19 +00:00
christos 8a0d2c8cb0 Fix PR1882+PR3171, swap display core-dumps from Paul Boven. 1997-02-02 19:20:55 +00:00
matthias a6c08e93f9 * revert broken handling of subcommands to the (working) 4.4Lite version. 1996-12-21 09:16:35 +00:00
scottr 823c2433dc Freshen up a bit:
- Replace deprecated sigblock() with sigprocmask()
 - Redraw the current display if SIGWINCH is caught
 - Style police
1996-12-13 19:26:18 +00:00
scottr 25e56cb761 Be explicit about iostat transfer rate by displaying `KBps' instead of
`Kps'.  As per (and noticed by) J.T.
1996-10-25 18:30:52 +00:00
explorer 661c82521c clear the screen at the correct time to avoid leaving garbage on the screen.
This happens when switching from address to :numbers display.

From FreeBSD pr bin/1425.
1996-08-11 04:19:16 +00:00
explorer 1350e82a8f remove nlist lookup of _dk_* 1996-08-11 04:16:28 +00:00
thorpej 1eaf5ee379 New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>
1996-05-10 23:16:30 +00:00
jtc cac62b2d65 Be pedantic, main() returns int in C. 1996-03-21 17:56:15 +00:00
ragge d05395713d Removed a couple of #ifdef vax causing systat to malfunction. 1996-03-15 22:19:23 +00:00
jonathan c82a4ed224 Update Makefiles for usr.bin/systat and usr.sbin/iostat to be
consistent with usr.bin/vmstat/Makefile wrt CLFAGS and -I, since
all three compile vmstat/names.c.  (Now compiles on a pmax.)
1995-12-22 08:04:24 +00:00
jtc 1bd0165884 iostat is in section 8; PR #1533 1995-09-27 19:46:12 +00:00
jtc 8ba230d554 vmstat is in section 8; PR #1532 1995-09-27 19:20:24 +00:00
jtc f1df59ade6 Sync with 4.4lite2 1995-08-31 22:11:37 +00:00
cgd b0246fc4cc update for new queue structures 1995-06-18 23:53:07 +00:00
mycroft c05dec805f Use inet_aton(), not inet_addr(). 1995-05-21 17:14:38 +00:00
mycroft 6480692679 Print out interrupt CPU time. 1995-05-17 15:51:47 +00:00
jtc 86f36c2670 Print error message and exit if TERM is not set.
From PR #1015.
1995-05-06 06:25:07 +00:00
cgd 5cac5e9c7c various includes, casts, and cleanups... 1995-04-29 05:54:42 +00:00
jtc d7bb47b09d vmunix -> netbsd 1995-04-27 18:22:55 +00:00
mycroft 67e80f483c Alphabetize. 1995-03-22 15:26:42 +00:00
mycroft 05fc3892b3 Use err*(3)/warn*(3). 1995-03-22 15:25:56 +00:00
mycroft 73ab328b89 Don't core dump on an illegal display type. Display a more specific error
message for an ambiguous type.
1995-03-22 15:20:31 +00:00
jtc 2f3cb7ae7d Changed to conform to NetBSD's new RCS Id convention. 1995-01-20 08:51:48 +00:00
jtc 12749a2a84 imported from 44lite 1995-01-20 08:30:50 +00:00