cgd
cffb580806
Implement the more flexiable `evcnt' interface as discussed (briefly) on
...
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +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
872ae35bf5
cp_time is no longer available in the kernel.
...
remove it from namelist[] to make vmstat work.
2000-06-04 08:07:36 +00:00
perry
0da76771e9
include sys/sched.h to get definition of CPUSTATES
2000-06-04 02:25:40 +00:00
thorpej
ae67003975
Need to include <sys/sched.h> to get cp_time-related constants.
2000-06-03 21:00:42 +00:00
simonb
cc0dc305fc
cp_time[] and the terminal chars in/out counters are u_int64_t's now.
2000-05-29 11:36:43 +00:00
fair
69de15b2b2
Remove documentation of bogus "-t" option, per PR 10036.
2000-05-17 09:49:32 +00:00
thorpej
bb06f77483
Print the zero page statistics.
2000-04-24 17:40:31 +00:00
simonb
d88dfea295
Don't declare 'extern opt*' getopt variables.
2000-04-14 06:11:07 +00:00
kleink
a3c6c197a2
Cast timeval members to types we know the printf conversions of.
2000-03-27 17:03:25 +00:00
fredb
2cfe71bc9a
More fallout from CL* purge.
1999-12-05 18:54:34 +00:00
soren
6df42c85a5
Make pool output fit in 80 columns on most machines.
1999-11-02 06:23:50 +00:00
thorpej
0bd35e4157
This program has to use KVM alrady, so use that to read uvmexp, rather
...
than sysctl. This can now read VM stats from crash dumps.
1999-10-30 22:49:58 +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
thorpej
ed8849cd5a
Define __POOL_EXPOSE to get at the guts of the pool descriptor.
1999-03-31 23:25: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
kleink
b75d68301e
<sys/fcntl.h> -> <fcntl.h>
1999-02-12 15:04:00 +00:00
thorpej
04767647ca
Nuke all mentions of vmstat -t. PR #6433 , Geoff Wing.
1999-01-11 23:03:06 +00:00
perry
bfd526219d
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-10 02:57:23 +00:00
thorpej
10be977794
Display the number of idle pages per pool.
1998-08-01 23:45:05 +00:00
pk
c84a4e8823
Print memory pool statistics.
1998-07-27 10:26:11 +00:00
mycroft
0c4d98ae35
const poisoning.
1998-07-26 17:53:10 +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
80efe80bc9
- change setgid kmem programs (that lend themselves to this) so setegid(getgid())
...
and the top, and then set the effective gid back to kmem around the call to
kvm_openfiles(). this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places
1998-07-06 07:50:18 +00:00
mrg
5dfbe405c5
KNF.
1998-07-05 08:02:34 +00:00
kleink
21a53ba722
Don't assume that an inclusion of <sys/time.h> makes visible all definitions
...
from <sys/types.h>.
1998-04-01 16:41:31 +00:00
kleink
08f1edf858
Update the EXAMPLES section to reflect that the interval between display
...
updates is not set using the `-w' option (was `-i'); from Brian Grayson
in PR bin/5241.
1998-04-01 16:32:54 +00:00
mrg
4c67898a4f
use the uvmexp.pageins member for "pi".
1998-03-05 02:47:05 +00:00
perry
ba7b5f16ff
add -DPMAP_NEW if PMAP_NEW is on in mk.conf
1998-02-18 03:54:58 +00:00
thorpej
2ca4a3f1c2
Add support for listing and dumping UVM history buffers.
1998-02-13 05:10:32 +00:00
mrg
4e8c1720a8
print almost all of uvmexp with -s. do pagein/pageout counts correctly.
...
also include freed pages count (that was missing from mach vm, but present
in the "output" but hard coded to 0 in vmstat.c.
1998-02-09 13:11:26 +00:00
mrg
279ce528ce
add -DUVM to CPPFLAGS if defined(UVM)
1998-02-09 06:25:15 +00:00
mrg
52bb2f5ba0
print out the contents of uvmexp for "vmstat -s"
1998-02-07 16:50:59 +00:00
mrg
3ff646f56e
flesh out standard vmstat output with UVM.
1998-02-07 16:18:14 +00:00
mrg
a705b928fd
GC old old old "NEWVM". make run under UVM, if not report everything yet..
1998-02-07 15:42:32 +00:00
thorpej
faa8ffb044
Revive the -f option: report fork statistics.
1998-01-04 03:59:04 +00:00
lukem
3e8e744696
getopt returns -1 not EOF
1997-11-01 06:49:14 +00:00
mrg
035e984ada
WARNSify; deprecate register; fix some broken fprintf() statements found from WARNS.
1997-10-20 03:11:57 +00:00
mrg
0026c9e93a
merge lite-2.
1997-10-18 14:34:39 +00:00
is
c0515bc6f2
Repair the formatting of the by-memory-type table of "vmstat -m"
...
("MSDOSFS mount" is too big for %12s).
Note that this breaks naive parser scripts, but they would not parse
the earlier "MSDOSFS mount" line correctly, anyway.
1997-04-10 15:49:30 +00:00
is
f70c0e95c8
"undefined" -> "undef/%d" for memory type names. Similar, but not identical
...
to Ken Raeburns proposal from PR 1012, herewith closed.
1997-04-10 15:23:50 +00:00
thorpej
a7883a4d79
If kmem stats are not being gathered by the kernel, print a useful
...
message to that effect. Fixes PR #3187 , submitted by
Guenther Grau <s_grau@ira.uka.de> (fix by me).
1997-02-22 02:04:42 +00:00
thorpej
3d130af5dc
Compute halfuptime' correctly when
uptime' == 1.
...
From Lennart Augustsson <augustss@cs.chalmers.se>, PR #2944 .
1996-11-29 19:40:56 +00:00
cgd
72f7358ea7
print all evcnt structures, not just those which have the name "intr".
...
Printing only those with the name "intr" is too restrictive, because it
means that devices can only have one interrupt, which makes little
sense for many devices and absolutely no sense for several common busses.
1996-11-25 22:55:59 +00:00
mycroft
916902678d
Remove straggling references to dk_ndrive and dk_xfer.
1996-08-08 04:11:27 +00:00
cgd
cbeadd1248
the kernel 'boottime' variable is a timeval. copy it out of kernel
...
memory as such (not as a time_t).
1996-06-05 00:18:58 +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
cgd
acf9d62a7b
update for the fact that 'allevents' is now a TAILQ.
1996-04-04 00:27:50 +00:00
mark
6acb166069
Provide a read_names() function for the arm32 port.
1996-04-01 21:45:25 +00:00
jonathan
96d023c99d
Fix pmax read_names() to compile with updated (release 1.1) names for
...
pmax device-driver structures.
1995-12-17 05:30:05 +00:00