HomeFreeBSD

zinject: count matches and injections for each handler

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on Mon, Jan 13, 1:33 PM
GitHub <noreply@github.com>Committed on Mon, Jan 13, 1:33 PM
Parents
rGfae4c664a4a6: FreeBSD: Use ashift in vdev_check_boot_reserve()
Branches
Unknown
Tags
Unknown