christos
5665eef11f
don't call curses from a signal handler!
2007-12-31 00:22:13 +00:00
dsl
49c5f0e9e5
Include code to display per system call counts and times.
2007-02-18 17:00:08 +00:00
dsl
019733f61e
WARNS=3
2005-02-26 22:12:33 +00:00
hubertf
756c7041c0
Add "df" display to give information about filesystems, available diskspace
...
and used disk capacity, similar to df(1):
Filesystem Avail Capacity
/0% /10% /20% /30% /40% /50% /60% /70% /80% /90% /100%
/ 359M |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
/tmp 180M |
/home 146G |XXXXXXXXXXXXXXXX
2005-02-16 03:45:41 +00:00
martin
9df8f56ac0
A __attribute__((__noreturn__)) function better be void - gcc correctly
...
complains at >= -O3 otherwise.
2004-03-27 00:53:59 +00:00
christos
676abde787
be more descriptive about what failed by printing the errno and the
...
variable we were trying to fetch.
2003-12-07 07:27:09 +00:00
mycroft
0e1a71bba5
WRT disk commands, make the man page consistent with the program, and add the
...
feature I expected.
2003-09-12 17:32:29 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
jdolecek
37870ec770
mark nlisterr() as 'noreturn'
2003-08-03 11:56:57 +00:00
dsl
85ed0bb278
Make kernel address arg of kvm_ckread() const void * so caller doesn't
...
need a cast.
(approved by christos)
2003-01-20 18:24:03 +00:00
mrg
3cf4c73d05
iostat(8) and systat(8) support for separate read/write disk statistics.
...
"iostat -x" now shows these (ala linux/solaris), but this is only splitting
the read/write bytes/transactions, not adding any new metrics. "systat
iostat" now has two new commands to switch between combined/separate mode
for both it's numbers & bar modes.
2002-11-01 12:47:55 +00:00
matt
74f8c3cccd
Fetch maxslp from the kernel. Only use USPACE if it's defined.
2001-07-14 07:09:11 +00:00
simonb
828483a73e
Remove extern variables and functions now declared in dkstats.h.
...
While here, remove 77 (!) unneed #includes.
2000-12-01 02:19:43 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
hubertf
e80cff4760
Add "all" mode to systat to cycle between all modes,
...
sort of like VMS' "MONITOR ALL"-command.
Code was submitted by Jarkko Teppo <jate@uwasa.fi> in PR 10851,
cleaned up and added 'turns' handling by me.
2000-08-25 04:48:56 +00:00
ad
fc3915475d
- Add `boot', `run', `time' and `zero' commands to all IP displays. These work
...
as in the `vmstat' display mode. The default mode is now `time', not `boot'.
- ANSIfy.
- s@kre\(@vmstat\(@.
- __RCSID() police.
- Tweak inet.icmp display visual a little.
2000-07-05 11:03:20 +00:00
thorpej
13ba787e60
Use kern.cp_time to fetch cp_time[]. Don't support fetching it from
...
crash dumps yet, as that requires determining which CPU we should fetch
it from, etc.
2000-06-04 16:06:25 +00:00
itojun
d7b4ec9207
- implement layered help.
...
Suggested by: Andy Doran <ad@mr-magoo.sports.gov.uk>
- inet6.ip6 and ipsec menu
- u_quad_t printing fix
- #ifdefs to allow compilation on 1.4.x
2000-01-08 23:12:36 +00:00
itojun
96a8bc922e
add command line -n flag, which is same as "netstat numbers".
...
without it, we can't disable name resolution before the resolution starts.
2000-01-07 04:47:23 +00:00
itojun
7b5dfc58ad
support IPv6. commands under "netstat" are IPv6 ready.
...
IPv6 is supported by filters (":ignore ssh") as well.
TODO: do something about line truncation?
TODO: inet6.icmp6? ":help" will not fit into single line...
2000-01-05 11:59:12 +00:00
jwise
2a1f30e2df
GC now-spurious prototype
1999-12-25 01:49:25 +00:00
kleink
c23c312a55
* Fix a display buglet: if the process list is exhausted before the window's
...
bottom is reached, clear the remaining lines, lest there be stale process
entries if the process list shrinks.
* Implement a top(1)-like `user' command in the ps display.
1999-12-22 14:46:14 +00:00
jwise
be9a446256
G/C function used in old command parsing
1999-12-20 04:06:25 +00:00
jwise
4c0fbd4c92
Two things:
...
1.) fix a bug which caused coredumps when starting with no mode arguments
2.) move to table-lookup for mode-specific command parsing as well.
all command matching is now table-driven.
1999-12-20 03:45:01 +00:00
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
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
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
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
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
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
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
5941399374
- some KNF.
...
- use __RCSID().
- WARNS=1
1997-07-21 07:04:56 +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
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
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