freebsd-nq/usr.bin/truss
Ryan Moeller 92e17803cd Enable iterating all sysctls, even ones with CTLFLAG_SKIP
Add an "nextnoskip" sysctl that allows for listing of sysctls intended to be
normally skipped for cost reasons.

This makes it so the names/descriptions of those sysctls can be discovered with
sysctl -aN/sysctl -ad/sysctl -at.

It also makes it so children are visited when a node flagged with CTLFLAG_SKIP
is explicitly requested.

The intended use case is to mark the root "kstat" node with CTLFLAG_SKIP so that
the extensive and expensive stats are skipped by default but may still be easily
obtained without having to know them all (which may not even be possible) and
request each one-by-one.

Reviewed by:	jhb
MFC after:	2 weeks
Relnotes:	yes
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D26560
2020-10-05 20:13:22 +00:00
..
extern.h spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
main.c Validate the string size parameter passed to -s. 2018-12-10 21:47:19 +00:00
Makefile Use PT_GET_SC_ARGS and PT_GET_SC_RET in truss. 2019-07-16 22:59:15 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
setup.c Use PT_GET_SC_ARGS and PT_GET_SC_RET in truss. 2019-07-16 22:59:15 +00:00
syscall.h truss: decode shm_open2 2020-02-19 14:54:33 +00:00
syscalls.c Enable iterating all sysctls, even ones with CTLFLAG_SKIP 2020-10-05 20:13:22 +00:00
truss.1
truss.h Use PT_GET_SC_ARGS and PT_GET_SC_RET in truss. 2019-07-16 22:59:15 +00:00