Commit Graph

346 Commits

Author SHA1 Message Date
simonb
28c9f023c7 Add ${LIBUTIL} to DPADD. 2020-12-11 07:24:38 +00:00
simonb
f34bcfad7a Use the vm.uspace sysctl instead of using the USPACE kernel define. 2020-08-26 10:56:01 +00:00
mrg
befa44380d increase slot slop space from 100 to 1000 before giving up.
from Paul Ripke on current-users.  thanks!
2020-03-02 09:50:12 +00:00
mrg
de11d87641 introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00
mrg
21303c93e9 convert HAVE_GCC == 7 to HAVE_GCC >= 7. 2019-09-29 23:44:58 +00:00
he
feecb28e70 Make the scaling of the "bytes written" sticky, so that if we go
to K, we don't return to unscaled, and similar for higher scales
(though it takes some effort, due to the wide field...)
Fixes PR#54334.
2019-06-30 19:57:23 +00:00
mrg
a0193bc54d - use -Wno-error=format-truncation 2019-02-04 03:58:41 +00:00
mrg
37649e4074 - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
christos
ace5fc6aeb no need for curses.h 2019-01-25 15:34:22 +00:00
christos
6b2ce0800e PR/53906: Paul Ripke: systat(1) vmstat & syscall get
"alternate system clock has died" on terminal resize (SIGWINCH)
2019-01-25 15:31:11 +00:00
tih
b953ff3f9a Remove a format character from a non-format string. 2019-01-08 08:22:20 +00:00
wiz
48f9820ef3 Fix some macro usage. Fix a typo. 2018-12-28 12:21:53 +00:00
sevan
3986ee252c Remove commentd out options for fields no longer present in source. 2018-12-26 01:54:09 +00:00
sevan
5a5cdfa229 Extend "systat vm" output to provide better insight about buffercache and
document it.

From Greg A. Woods in PR bin/36542
2018-12-26 01:47:37 +00:00
maxv
5d73803e75 Remove now unused tcpip.h includes. Some were already unused before. 2018-05-03 07:13:48 +00:00
snj
4678f4dd6f add -b to usage. 2017-11-22 02:52:42 +00:00
mrg
079cbf3933 add missing 'b' to the optstring. alpha-sort the option handling. 2017-11-17 20:43:08 +00:00
mlelstv
9368f38e90 Use I/O timestamps to compute disk statistics for better precisison. 2017-07-15 08:22:23 +00:00
wiz
01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
chs
ffdbc0ccea rearrange sys/mount.h so that all of the kernel-only parts are together
and not exposed to userland, except do expose struct mount if __EXPOSE_MOUNT
is defined.  define __EXPOSE_MOUNT in the kmem grovellers that want
the definition.  needed for ZFS.
2017-06-09 00:13:29 +00:00
christos
32377daaf2 need <sys/stat.h> 2017-01-10 21:14:51 +00:00
mrg
0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
mrg
15bdea6a19 add a basic "-b" option - that outputs one display and exits.
inspired by "top -b".  still requires a curses-capable output
without some fairly significant internal restructuring.
2016-12-03 03:26:27 +00:00
christos
4667eeb169 sysctlbyname is convenient, but ain't cheap. Cache it. 2016-10-24 00:40:17 +00:00
christos
8ff995f221 allow fractional intervals 2016-10-22 22:02:55 +00:00
christos
b31382fbd7 Avoid string gymnastics in an olympic year. 2016-08-05 07:22:17 +00:00
jakllsch
ccf7078d06 Make this build with clang:
- Remove unused static const variables
 - Adjust impossibleish comparision.
2016-08-04 12:56:31 +00:00
wiz
4ff383b44d Bump date for new ifstat command. 2016-08-03 13:09:43 +00:00
scole
6f3aa0fcd4 Add $NetBSD$ tag for new files 2016-08-02 17:53:46 +00:00
scole
bd7662dc4d PR bin/51204
Add ifstat command to systat.

Imported from FreeBSD
2016-08-02 15:56:09 +00:00
dholland
a4db6377a4 NetBSD does actually support flat-panel displays. Even for systat(1).
(noted by tnn)
2016-03-12 02:39:01 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
mrg
ef363e2dc9 if you change display types, the "Showing %s, refresh every %d seconds."
message is retained, and you can't get rid of it.  since it's dispalyed
in inverse, it feels like there's always an error happening (which is
really what the code has -- the above string is displayed via the error()
function.)  for several types of key press that largely are just "redraw"
operation (space, ^L, etc.), clear the error string as well.
2015-08-23 18:33:15 +00:00
dennis
7ad3371ebc Update stats-keeping in sys/kern/vfs_cache.c to remove (most)
races while allowing consistent lockless sampling of the per-cpu
statistics without atomic operations.  Update comment describing
the locking protocol to include this.

These files were fumble-fingered out of the last commit.
2014-12-24 20:01:21 +00:00
njoly
e75f143af6 Remove fagile test which ensured that first namelist element (was
X_NCHSTATS) had a known type. Make disk stats available again for
vmstat display.
2014-06-20 07:08:15 +00:00
joerg
10aed88aaf GC X_NCHSTATS 2014-06-14 20:10:42 +00:00
joerg
deae2c9ba3 Always use_sysctl in preparation of removing all kvm code. 2014-06-03 22:22:41 +00:00
joerg
94adc2671a Provide sysctl for namecache statistics. 2014-06-03 21:16:15 +00:00
jdc
3db3d1f929 Restore lost break. 2014-03-08 20:51:20 +00:00
dsl
dc210c7fbd Remove some pointless inclusions os sys/user.h 2014-02-19 20:42:14 +00:00
mlelstv
ffb41b3a17 Fix fallout from circleq->tailq transition. 2013-11-24 13:13:12 +00:00
bad
8fd869ab61 Make :drives, :display, :ignore accept fnmatch(3) patterns to specify drives.
Bump man page date.
2013-10-18 22:42:31 +00:00
christos
6e28978d84 fix unused variable warnings 2013-10-18 20:47:06 +00:00
bad
87f2ce05f1 No David, '\?' is not the del character. Broken in rev 1.21.
XXX pullup-5, pullup-6.
2013-10-14 22:23:22 +00:00
christos
5c26317391 bufmem is unsigned. 2012-11-23 15:35:57 +00:00
pgoyette
a5f70a7bc1 Fix format string to resolve build break 2012-11-23 06:44:38 +00:00
christos
0f21b86617 use more sysctl 2012-11-23 03:47:36 +00:00
christos
06cfe04c08 fix wrong sysctl 2012-11-23 03:46:35 +00:00
christos
9a3978f67e use more sysctl 2012-11-23 03:37:27 +00:00
christos
abc21e6c39 use sysctl 2012-11-23 03:33:05 +00:00