OpenBSD CVS

CVS log for src/usr.bin/systat/systat.h


[BACK] Up to [local] / src / usr.bin / systat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Sat May 18 09:02:34 2024 UTC (29 hours, 15 minutes ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.25: +1 -4 lines
Diff to previous 1.25 (colored)

remove prototypes with no matching function

Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 4 18:01:57 2022 UTC (17 months, 2 weeks ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

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 1.24 / (download) - annotate - [select for diffs], Mon Jan 18 00:49:09 2021 UTC (3 years, 4 months ago) by mortimer
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

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

ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Mar 4 21:27:35 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

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 1.22 / (download) - annotate - [select for diffs], Wed May 30 13:43:51 2018 UTC (5 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

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

Feedbacks, tweaks, ok bluhm@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 12 01:03:00 2015 UTC (9 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.20: +1 -4 lines
Diff to previous 1.20 (colored)

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 1.20 / (download) - annotate - [select for diffs], Thu Jul 10 14:39:18 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

repair prototypes

Revision 1.19 / (download) - annotate - [select for diffs], Sat Sep 7 11:43:50 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

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 1.18 / (download) - annotate - [select for diffs], Wed Dec 5 23:20:26 2012 UTC (11 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 31 06:12:34 2011 UTC (13 years, 1 month ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 2 06:48:17 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

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

ok canacar@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 22 12:33:29 2010 UTC (13 years, 10 months ago) by giovanni
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)


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

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 13 23:45:35 2009 UTC (14 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.13: +13 -1 lines
Diff to previous 1.13 (colored)

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 1.13 / (download) - annotate - [select for diffs], Fri Jun 19 07:48:45 2009 UTC (14 years, 11 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

- 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 1.12 / (download) - annotate - [select for diffs], Sat Nov 8 06:38:27 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 5 15:48:44 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 2 06:23:28 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 12 22:26:01 2008 UTC (15 years, 11 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.8: +44 -13 lines
Diff to previous 1.8 (colored)

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 1.8 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:17 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.7: +2 -6 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:54 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.6: +8 -8 lines
Diff to previous 1.6 (colored)

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.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Dec 7 09:18:08 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

move back.  pvalchev -- the bug was quite obscure

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 7 07:57:36 2001 UTC (22 years, 5 months ago) by pvalchev
Branch: MAIN
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Fri Nov 23 22:20:06 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 23 22:21:49 1997 UTC (26 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.2: +10 -10 lines
Diff to previous 1.2 (colored)

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 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:40:12 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:10 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:10 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.