itojun
0162be23d0
synchronize w/ inpcb/in6pcb change
2003-09-04 09:23:35 +00:00
dsl
99135be3ff
Use correct size when copying interrupt counters.
...
Fixes second part of bin/10095 (first part fixed in rev 1.25)
2003-08-30 12:57:03 +00:00
dsl
df54a17886
Bring description of vmstat page closer to reality.
2003-08-30 12:27:26 +00:00
dsl
55a20c5130
Correct boundary conditions for drive table for 'systat io num'.
...
Correct fix for bin/18823 (which was incomplete and wrong!)
2003-08-12 17:16:53 +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
grant
c330a8c5ed
Discs->Disks
2003-08-05 20:01:25 +00:00
jdolecek
ecb9302c7f
if kvm_nlist() fails, nlisterr() would be called before the screen
...
curses context would be initialized; just use errx() instead in this case
this fixes coredump for cases like 'systat -N /netbsd.gz', reported by Walt
on port-i386
in nlisterr(), wait a while (5 seconds currently) before exiting, so that
it would be actually possible to actually see the error
2003-08-03 12:14:58 +00:00
jdolecek
37870ec770
mark nlisterr() as 'noreturn'
2003-08-03 11:56:57 +00:00
dsl
aaba6e7d29
No need to resizeterm() if size not changed.
...
On 'fg' just restore old screen contents.
2003-07-05 08:05:51 +00:00
dsl
5ae48961f9
Redraw addresses after screen refresh
2003-07-05 06:48:52 +00:00
wiz
ba22178ad0
Quote question mark. Change width argument in a table to line up
2003-06-27 09:38:58 +00:00
drochner
96b62d8a69
no need to #include <sys/dkstat.h>
2003-06-11 17:26:31 +00:00
dsl
31cb6aba03
Reinstate our STOP handler before curses installs its one.
...
Ensures that both handlers are executed on subsequent stops.
2003-05-28 20:17:14 +00:00
itojun
0e1bb4cd82
use strlcat/strlcpy
2003-05-17 21:03:21 +00:00
itojun
5bce78caa7
use strlcpy
2003-05-15 01:00:07 +00:00
perry
da63de702d
refreshs->refreshes
...
reactived->reactivated
intransit->in-transit
from Igor Sobrado, PR misc/19700
2003-03-31 02:16:37 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
dsl
9f46bb077a
Create subwins that end one line from the bottom of the screen even
...
after the window is resized.
2003-02-24 10:10:00 +00:00
dsl
34e0475375
Pivot the disk stats into extra lines if they run out of columns
...
(approved by christos)
2003-02-18 14:55:05 +00:00
dsl
c4ccc4eaf4
Fiddle with screen layout to generate room for longer labels on the
...
interrupt count fields.
(approved by christos)
2003-02-17 19:30:33 +00:00
dsl
c22a42ecd8
Avoid displaying "intr" for all interrupt counter titles
...
(approved by christos)
2003-02-13 08:09:33 +00:00
dsl
d616c663f8
Resize windows on SIGWINCH and restart from SIGTSTP
...
(approved by christos)
2003-02-10 23:59:48 +00:00
dsl
b3467bbf38
When disk activity exceeds 100kB/s divide length of bar by 10s and report
...
factor on RHS screen.
(approved by christos)
2003-02-01 19:12:30 +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
christos
8e448c92b9
kill warns.
2003-01-18 21:18:18 +00:00
dsl
24ec5512d1
pull interrupt stats from event counts
...
fix disk xfer byte count
fix absolute counts - were divided by time interval
2003-01-18 21:02:35 +00:00
thorpej
3fdac2b8c5
Merge the nathanw_sa branch.
2003-01-18 10:52:16 +00:00
wiz
7e681f7063
interrupt with two rs.
2003-01-06 13:04:54 +00:00
kristerw
5fa174af73
Prevent the "kBps" field from overflowing for values > 1M/s.
...
From Paul Shupak in PR 18822.
2002-12-29 19:03:56 +00:00
thorpej
9f3eaa5002
Remove extra args from a printf.
2002-12-06 03:13:14 +00:00
itojun
5f2d0b666f
error handling on strdup failure
2002-11-16 15:59:26 +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
christos
836efa3eb4
PR/18408: Chris Demetriou: Kilo is abbreviated using a small k not a CAPITAL K.
2002-09-25 13:50:39 +00:00
lukem
5d4973fe97
makefile delint. use NETBSDSRCDIR as appropriate
2002-09-18 14:00:33 +00:00
abs
3dbe098822
introduce puthumanint() which calls humanize_number(), and use to
...
display disk transfer values (Suggested by Simon Burge). Also clip
%busy to 100 and display as an int which has the useful side effect
of stopping it overflowing into the next column (100.0).
2002-08-08 17:06:31 +00:00
christos
84610072e6
scan utmpx/utmp.
2002-08-01 23:36:54 +00:00
sommerfeld
f80c7eebd7
Since the KERN_CP_TIME sysctl reports total clock ticks across all
...
cpus and hz is measured in ticks per cpu, divide tick count by ncpu to
determine elapsed time since last sample.
Fixes I/O rate deflation observed on multiprocessors.
2002-06-30 00:10:33 +00:00
itojun
cc0c94e480
format fix in number mode. PR 16911
2002-06-09 07:14:32 +00:00
kleink
697af10002
From Simon Burge: remove orphaned reference to _total; fixes PR bin/16804.
2002-05-15 06:43:37 +00:00
thorpej
477d91c699
Use kinfo_proc2.
2002-05-04 18:44:27 +00:00
jmc
1347ab1b90
Remove check for sparc64 which adds -msoft-quad-float as that is now the
...
default for the compiler on sparc64.
2002-03-28 09:58:09 +00:00
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
augustss
550d5dae5a
Make it compile (more vmstat fallout).
2002-01-28 13:20:43 +00:00
fair
82127e1a6d
Apply patch to BUGS section, per PR 13230, plus clean up nroff nits.
2002-01-13 07:04:56 +00:00
chs
8e9cdbbd63
replace "vnode" and "vtext" with "file" and "exec" in uvmexp field names.
2001-12-09 03:07:43 +00:00
blymn
1318761243
Change deprecated curses function to new equivalent.
2001-12-06 12:40:51 +00:00
augustss
6778fe934d
Since the system call and trap rates are often 5 digit numbers these
...
days we move the columns a little to avoid running into other numbers.
2001-09-28 11:58:51 +00:00
matt
74f8c3cccd
Fetch maxslp from the kernel. Only use USPACE if it's defined.
2001-07-14 07:09:11 +00:00
wiz
2210c26064
Remove Pp before Sh, and split filesystem.
2001-07-08 18:16:40 +00:00
wiz
0a600be867
receive, not recieve
2001-06-12 15:17:10 +00:00
wiz
7da30c83ac
Change xref for vmstat(8) to vmstat(1).
...
Whitespace, punctuation and spelling fixes while I'm here.
2001-05-06 23:48:31 +00:00
simonb
1d86c612aa
Show pages used by executables.
...
Align the numbers in the summary lines.
2001-03-09 03:05:20 +00:00
mrg
f0c3971950
use -msoft-quad-float on the sparc64.
2001-02-04 14:42:31 +00:00
cgd
d594ce939b
comment or delete text after CPP directives.
2001-01-16 02:50:27 +00:00
cgd
2af1e46eab
__CONCAT does token pasting, not string concatnation. if something like:
...
__CONCAT("foo","bar");
actually works to concantate strings, it's because the preprocessor expands
it into "foo""bar" as separate strings, and then ANSI string concatenation
is performed on that. It's more straightforward to just use ANSI string
concatenation directly, and newer GCCs complain (rightly) about misuse
of token pasting.
2000-12-20 01:17:49 +00:00
cgd
d20e04a121
Don't try to use CPP token pasting to somehow 'stick' structure member
...
names on to the -> or . before them. There's no need to, and it's not
actually the right thing!
2000-12-20 01:16:42 +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
simonb
2eddffdf28
Show the vnode page cache memory usage on the "bufcache" display.
2000-11-30 12:08:13 +00:00
simonb
ba632e7078
Use the vm.uvmexp2 sysctl.
2000-11-29 11:18:33 +00:00
thorpej
e31647affd
int vs. pointer format/argument confusion.
2000-10-11 18:50:12 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
ad
6be16e198e
- Ignore null commands, instead of inventing a bogus match. See PR 10596.
...
- In switch_mode(), display status line even if switching to the same mode.
2000-09-04 12:28:12 +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
itojun
f39d44cbaf
repair inet6.ip6 stat (broken in 1.4 -> 1.5).
2000-07-16 03:07:20 +00:00
itojun
710d2cd983
remove pulldown statistics
2000-07-13 11:07:34 +00:00
ad
c92d2c3831
- Document new commands for IP displays.
...
- Replace the "Takes 2-10 percent of the CPU" statement.
2000-07-05 11:04:51 +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
mrg
8d4795719a
remove include of <vm/vm.h>
2000-06-29 06:26:33 +00:00
ad
3553879fc2
Use my proper name.
2000-06-13 13:36:42 +00:00
mycroft
4e87b9d4f5
Fix bogons in command parsing for >1 arg.
2000-06-05 21:48:25 +00:00
mycroft
2f240403c3
Display disk busy statistics as `%busy', as it's less confusing.
2000-06-05 21:36:34 +00:00
mycroft
981f9b7d7b
Use hline() and variants in a bunch of places.
2000-06-04 18:29:13 +00:00
mycroft
796e1a63fa
Fix a check so that holding down the space bar doesn't cause systat to lose.
2000-06-04 18:14:45 +00:00
mycroft
3ddc3c22b9
Fix the CPU usage bar graph.
2000-06-04 18:10:40 +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
perry
bd70b1984f
include sys/sched.h to get definition of CPUSTATES
2000-06-04 01:53:51 +00:00
thorpej
ae67003975
Need to include <sys/sched.h> to get cp_time-related constants.
2000-06-03 21:00:42 +00:00
thorpej
38c3726a7b
Handle SONPROC state.
2000-06-02 04:32:07 +00:00
simonb
60e2ae70e5
Another cp_time size fix - also, there are 5 CPUSTATES now not four...
2000-05-29 12:54:31 +00:00
matt
0c28135c93
fix SHOW to work on any platform
2000-04-29 04:36:16 +00:00
thorpej
20a1abdaef
u_quad_t must be cast to (long long) to be printed with %llu.
2000-04-27 21:40:41 +00:00
jdc
d6d7f0531f
Fix arguments to *printw().
2000-04-27 00:30:51 +00:00
mrg
90bc324a8d
use <sys/swap.h>. should have happened years ago.
2000-04-13 08:29:56 +00:00
jwise
1a9ae67f41
Reorder two commands so that substring matching doesn't make one shadow
...
the other.
2000-04-11 01:18:35 +00:00
jwise
ad285dbfbe
Two UI changes:
...
a.) restore the capability to enter a substring of a mode or command
name. Pointed out by Soren Jorvang.
b.) (capital) Q now exits systat immediately
2000-04-11 01:01:26 +00:00
soren
bca6350a53
Prevent percentage overflows by keeping score in kilobytes.
2000-02-14 05:35:21 +00:00
mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
ad
b7de5e4494
Two tiny formatting nits in each file.
2000-01-13 12:39:04 +00:00
itojun
f70b9a5724
don't choke on non-INET6 kernel, or non-IPSEC kernel.
...
cleanup error handling on mode change failure.
TODO: non-IPv4 kernel support should be improved. "netstat" should be okay,
"inet.ip" and "inet.icmp" needs more trick.
NetBSD PR: 9157
2000-01-10 21:06:15 +00:00
itojun
4bed540017
oops, avoid duplicate free().
2000-01-08 23:34:17 +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
itojun
88ac9b1712
remove dupplicated prototype defs for file static funcs.
2000-01-05 11:50:21 +00:00
itojun
5784d552dd
avoid null pointer access on ":show".
2000-01-05 11:48:21 +00:00
msaitoh
dad5b69f37
fix printf format for inet.ip
...
(because the entries in struct ipstat is u_quad_t)
2000-01-04 15:17:00 +00:00
itojun
0b66a621f9
bring in latter half of PR 9080 (host table allocation error check).
2000-01-04 15:12:42 +00:00
tron
a3045c188e
Add missing memory check in port table handling. Patch based on
...
PR bin/9080 by Jun-ichiro itojun Hagino
1999-12-31 12:58: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