mirror_zfs/tests/zfs-tests
Rob Norris fabdd502f4 zinject: count matches and injections for each handler
When building tests with zinject, it can be quite difficult to work out
if you're producing the right kind of IO to match the rules you've set
up.

So, here we extend injection records to count the number of times a
handler matched the operation, and how often an error was actually
injected (ie after frequency and other exclusions are applied).

Then, display those counts in the `zinject` output.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Closes #16938
2025-02-25 22:25:24 +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: Remove non-standard awk hex numbers usage 2024-12-29 11:53:45 -08: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 tests: add test for vdev_disk page alignment check 2024-04-11 14:42:46 -07:00