/[base]
ViewVC logotype

Revision 366465


Jump to revision: Previous Next
Author: freqlabs
Date: Mon Oct 5 20:13:22 2020 UTC (3 years, 8 months ago)
Changed paths: 4
Log Message:
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


Changed paths

Path Details
Directoryhead/sbin/sysctl/sysctl.c modified , text changed
Directoryhead/sys/kern/kern_sysctl.c modified , text changed
Directoryhead/sys/sys/sysctl.h modified , text changed
Directoryhead/usr.bin/truss/syscalls.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27