History log of /openbsd-current/usr.bin/systat/systat.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.27 21-May-2024 jsg

remove prototypes with no matching function and externs with no var
partly checked by millert@


# 1.26 18-May-2024 jsg

remove prototypes with no matching function


Revision tags: OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.25 04-Dec-2022 cheloha

systat(1): vmstat: measure elapsed time with clock_gettime(2) instead of ticks

The vmstat view in systat(1) should not use statclock() ticks to count
elapsed time. First, ticks are low resolution. Second, the statclock
is sometimes randomized, so each tick is not necessarily of equal
length. Third, we're counting ticks from every CPU on the system, so
every rate in the view is divided by the number of CPUs. For example,
on an amd64 system with 8 CPUs you currently see:

200 clock

... when the true clock interrupt rate on that system is 1600.

Instead, measure elapsed time with clock_gettime(2). Use CLOCK_UPTIME
here so we exclude time when the system is suspended. With this
change we no longer need "stathz" or "hertz". We can also get rid of
the anachronistic secondary clock failure test.

Prompted by dlg@ and jmatthew@. deraadt@ says this has been in snaps
since 2022-11-21; no complaints.

Link: https://marc.info/?l=openbsd-tech&m=166898960831136&w=2

ok dlg@ deraadt@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.24 18-Jan-2021 mortimer

Move defiition of sum variable from header file to avoid issues with
-fno-common

ok deraadt@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.23 04-Mar-2019 dlg

expose the interface queue drops in the interface view

by default qdrops and errors are combined in a number of failures.
the qdrops and errors can be viewed separately by using 'd' and 'e'
respectively, or the combined view again with 'f'.

ok claudio@ deraadt@


Revision tags: OPENBSD_6_4_BASE
# 1.22 30-May-2018 krw

Add uvm view to show all values being collected in uvmexp.

Feedbacks, tweaks, ok bluhm@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.21 12-Mar-2015 claudio

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP. This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.20 10-Jul-2014 deraadt

repair prototypes


Revision tags: OPENBSD_5_5_BASE
# 1.19 07-Sep-2013 reyk

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.17 31-Mar-2011 lum

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@


# 1.16 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.15 22-Jul-2010 giovanni

Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@


Revision tags: OPENBSD_4_7_BASE
# 1.14 13-Aug-2009 deraadt

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg


Revision tags: OPENBSD_4_6_BASE
# 1.13 19-Jun-2009 jasper

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@


Revision tags: OPENBSD_4_5_BASE
# 1.12 08-Nov-2008 canacar

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m


# 1.11 05-Nov-2008 canacar

Fix some function prototypes, remove unused variables and commented out code


# 1.10 02-Nov-2008 canacar

Add a view that displays pool(9) information. Idea and ok deraadt@


Revision tags: OPENBSD_4_4_BASE
# 1.9 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.6 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.5 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.4 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.26 18-May-2024 jsg

remove prototypes with no matching function


Revision tags: OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.25 04-Dec-2022 cheloha

systat(1): vmstat: measure elapsed time with clock_gettime(2) instead of ticks

The vmstat view in systat(1) should not use statclock() ticks to count
elapsed time. First, ticks are low resolution. Second, the statclock
is sometimes randomized, so each tick is not necessarily of equal
length. Third, we're counting ticks from every CPU on the system, so
every rate in the view is divided by the number of CPUs. For example,
on an amd64 system with 8 CPUs you currently see:

200 clock

... when the true clock interrupt rate on that system is 1600.

Instead, measure elapsed time with clock_gettime(2). Use CLOCK_UPTIME
here so we exclude time when the system is suspended. With this
change we no longer need "stathz" or "hertz". We can also get rid of
the anachronistic secondary clock failure test.

Prompted by dlg@ and jmatthew@. deraadt@ says this has been in snaps
since 2022-11-21; no complaints.

Link: https://marc.info/?l=openbsd-tech&m=166898960831136&w=2

ok dlg@ deraadt@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.24 18-Jan-2021 mortimer

Move defiition of sum variable from header file to avoid issues with
-fno-common

ok deraadt@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.23 04-Mar-2019 dlg

expose the interface queue drops in the interface view

by default qdrops and errors are combined in a number of failures.
the qdrops and errors can be viewed separately by using 'd' and 'e'
respectively, or the combined view again with 'f'.

ok claudio@ deraadt@


Revision tags: OPENBSD_6_4_BASE
# 1.22 30-May-2018 krw

Add uvm view to show all values being collected in uvmexp.

Feedbacks, tweaks, ok bluhm@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.21 12-Mar-2015 claudio

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP. This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.20 10-Jul-2014 deraadt

repair prototypes


Revision tags: OPENBSD_5_5_BASE
# 1.19 07-Sep-2013 reyk

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.17 31-Mar-2011 lum

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@


# 1.16 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.15 22-Jul-2010 giovanni

Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@


Revision tags: OPENBSD_4_7_BASE
# 1.14 13-Aug-2009 deraadt

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg


Revision tags: OPENBSD_4_6_BASE
# 1.13 19-Jun-2009 jasper

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@


Revision tags: OPENBSD_4_5_BASE
# 1.12 08-Nov-2008 canacar

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m


# 1.11 05-Nov-2008 canacar

Fix some function prototypes, remove unused variables and commented out code


# 1.10 02-Nov-2008 canacar

Add a view that displays pool(9) information. Idea and ok deraadt@


Revision tags: OPENBSD_4_4_BASE
# 1.9 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.6 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.5 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.4 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.25 04-Dec-2022 cheloha

systat(1): vmstat: measure elapsed time with clock_gettime(2) instead of ticks

The vmstat view in systat(1) should not use statclock() ticks to count
elapsed time. First, ticks are low resolution. Second, the statclock
is sometimes randomized, so each tick is not necessarily of equal
length. Third, we're counting ticks from every CPU on the system, so
every rate in the view is divided by the number of CPUs. For example,
on an amd64 system with 8 CPUs you currently see:

200 clock

... when the true clock interrupt rate on that system is 1600.

Instead, measure elapsed time with clock_gettime(2). Use CLOCK_UPTIME
here so we exclude time when the system is suspended. With this
change we no longer need "stathz" or "hertz". We can also get rid of
the anachronistic secondary clock failure test.

Prompted by dlg@ and jmatthew@. deraadt@ says this has been in snaps
since 2022-11-21; no complaints.

Link: https://marc.info/?l=openbsd-tech&m=166898960831136&w=2

ok dlg@ deraadt@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.24 18-Jan-2021 mortimer

Move defiition of sum variable from header file to avoid issues with
-fno-common

ok deraadt@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.23 04-Mar-2019 dlg

expose the interface queue drops in the interface view

by default qdrops and errors are combined in a number of failures.
the qdrops and errors can be viewed separately by using 'd' and 'e'
respectively, or the combined view again with 'f'.

ok claudio@ deraadt@


Revision tags: OPENBSD_6_4_BASE
# 1.22 30-May-2018 krw

Add uvm view to show all values being collected in uvmexp.

Feedbacks, tweaks, ok bluhm@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.21 12-Mar-2015 claudio

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP. This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.20 10-Jul-2014 deraadt

repair prototypes


Revision tags: OPENBSD_5_5_BASE
# 1.19 07-Sep-2013 reyk

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.17 31-Mar-2011 lum

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@


# 1.16 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.15 22-Jul-2010 giovanni

Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@


Revision tags: OPENBSD_4_7_BASE
# 1.14 13-Aug-2009 deraadt

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg


Revision tags: OPENBSD_4_6_BASE
# 1.13 19-Jun-2009 jasper

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@


Revision tags: OPENBSD_4_5_BASE
# 1.12 08-Nov-2008 canacar

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m


# 1.11 05-Nov-2008 canacar

Fix some function prototypes, remove unused variables and commented out code


# 1.10 02-Nov-2008 canacar

Add a view that displays pool(9) information. Idea and ok deraadt@


Revision tags: OPENBSD_4_4_BASE
# 1.9 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.6 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.5 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.4 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.24 18-Jan-2021 mortimer

Move defiition of sum variable from header file to avoid issues with
-fno-common

ok deraadt@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.23 04-Mar-2019 dlg

expose the interface queue drops in the interface view

by default qdrops and errors are combined in a number of failures.
the qdrops and errors can be viewed separately by using 'd' and 'e'
respectively, or the combined view again with 'f'.

ok claudio@ deraadt@


Revision tags: OPENBSD_6_4_BASE
# 1.22 30-May-2018 krw

Add uvm view to show all values being collected in uvmexp.

Feedbacks, tweaks, ok bluhm@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.21 12-Mar-2015 claudio

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP. This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.20 10-Jul-2014 deraadt

repair prototypes


Revision tags: OPENBSD_5_5_BASE
# 1.19 07-Sep-2013 reyk

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.17 31-Mar-2011 lum

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@


# 1.16 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.15 22-Jul-2010 giovanni

Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@


Revision tags: OPENBSD_4_7_BASE
# 1.14 13-Aug-2009 deraadt

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg


Revision tags: OPENBSD_4_6_BASE
# 1.13 19-Jun-2009 jasper

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@


Revision tags: OPENBSD_4_5_BASE
# 1.12 08-Nov-2008 canacar

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m


# 1.11 05-Nov-2008 canacar

Fix some function prototypes, remove unused variables and commented out code


# 1.10 02-Nov-2008 canacar

Add a view that displays pool(9) information. Idea and ok deraadt@


Revision tags: OPENBSD_4_4_BASE
# 1.9 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.6 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.5 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.4 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.23 04-Mar-2019 dlg

expose the interface queue drops in the interface view

by default qdrops and errors are combined in a number of failures.
the qdrops and errors can be viewed separately by using 'd' and 'e'
respectively, or the combined view again with 'f'.

ok claudio@ deraadt@


Revision tags: OPENBSD_6_4_BASE
# 1.22 30-May-2018 krw

Add uvm view to show all values being collected in uvmexp.

Feedbacks, tweaks, ok bluhm@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.21 12-Mar-2015 claudio

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP. This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.20 10-Jul-2014 deraadt

repair prototypes


Revision tags: OPENBSD_5_5_BASE
# 1.19 07-Sep-2013 reyk

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.17 31-Mar-2011 lum

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@


# 1.16 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.15 22-Jul-2010 giovanni

Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@


Revision tags: OPENBSD_4_7_BASE
# 1.14 13-Aug-2009 deraadt

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg


Revision tags: OPENBSD_4_6_BASE
# 1.13 19-Jun-2009 jasper

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@


Revision tags: OPENBSD_4_5_BASE
# 1.12 08-Nov-2008 canacar

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m


# 1.11 05-Nov-2008 canacar

Fix some function prototypes, remove unused variables and commented out code


# 1.10 02-Nov-2008 canacar

Add a view that displays pool(9) information. Idea and ok deraadt@


Revision tags: OPENBSD_4_4_BASE
# 1.9 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.6 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.5 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.4 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.22 30-May-2018 krw

Add uvm view to show all values being collected in uvmexp.

Feedbacks, tweaks, ok bluhm@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.21 12-Mar-2015 claudio

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP. This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.20 10-Jul-2014 deraadt

repair prototypes


Revision tags: OPENBSD_5_5_BASE
# 1.19 07-Sep-2013 reyk

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.17 31-Mar-2011 lum

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@


# 1.16 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.15 22-Jul-2010 giovanni

Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@


Revision tags: OPENBSD_4_7_BASE
# 1.14 13-Aug-2009 deraadt

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg


Revision tags: OPENBSD_4_6_BASE
# 1.13 19-Jun-2009 jasper

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@


Revision tags: OPENBSD_4_5_BASE
# 1.12 08-Nov-2008 canacar

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m


# 1.11 05-Nov-2008 canacar

Fix some function prototypes, remove unused variables and commented out code


# 1.10 02-Nov-2008 canacar

Add a view that displays pool(9) information. Idea and ok deraadt@


Revision tags: OPENBSD_4_4_BASE
# 1.9 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.6 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.5 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.4 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.21 12-Mar-2015 claudio

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP. This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.20 10-Jul-2014 deraadt

repair prototypes


Revision tags: OPENBSD_5_5_BASE
# 1.19 07-Sep-2013 reyk

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.17 31-Mar-2011 lum

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@


# 1.16 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.15 22-Jul-2010 giovanni

Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@


Revision tags: OPENBSD_4_7_BASE
# 1.14 13-Aug-2009 deraadt

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg


Revision tags: OPENBSD_4_6_BASE
# 1.13 19-Jun-2009 jasper

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@


Revision tags: OPENBSD_4_5_BASE
# 1.12 08-Nov-2008 canacar

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m


# 1.11 05-Nov-2008 canacar

Fix some function prototypes, remove unused variables and commented out code


# 1.10 02-Nov-2008 canacar

Add a view that displays pool(9) information. Idea and ok deraadt@


Revision tags: OPENBSD_4_4_BASE
# 1.9 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.7 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.6 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.5 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.4 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.3 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision