mirror_zfs/tests/zfs-tests
Rob Norris 198621f910 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>
2025-02-25 22:28:14 +05:00
..
callbacks Split functional testings via github action matrix 2023-03-15 10:41:05 -07:00
cmd tests: fix uClibc for getversion.c 2024-11-14 16:56:34 -08:00
include ZTS: reimplement kstat helper function 2025-02-25 22:28:14 +05:00
tests zinject: count matches and injections for each handler 2025-02-25 22:25:24 +05:00
.gitignore autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
Makefile.am ZTS: reimplement kstat helper function 2025-02-25 22:28:14 +05:00