HomeFreeBSD

ZTS: reimplement kstat helper function

Description

ZTS: reimplement kstat helper function

The old kstat helper function was barely used, I suspect in part because
it was very limited in the kinds of kstats it could gather.

This adds new functions to replace it, for each kind of thing that can
have stats: global, pool and dataset. There's options in there to get a
single stat value, or all values within a group.

Most importantly, the interface is the same for both platforms.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Details

Provenance
rob.norris_klarasystems.comAuthored on Thu, Jan 16, 12:19 AM
Tony Hutter <hutter2@llnl.gov>Committed on Tue, Jan 21, 6:12 PM
Parents
rGb8c0c154ad98: Fix several typos in the man pages
Branches
Unknown
Tags
Unknown