Re: [patch 0/5] RFC: fault-injection capabilities

From: Valdis . Kletnieks
Date: Thu Aug 24 2006 - 14:39:20 EST


On Wed, 23 Aug 2006 20:32:43 +0900, Akinobu Mita said:

> For example about kmalloc failures:
>
> /debug/failslab/probability
>
> specifies how often it should fail in percent.

As others have noted, the *right* semantics for this is being able to inject a
1% or higher rate in the code you're interested in, while maintaining a 0
injection rate for things outside the module under test. Maybe a /debug/
failslab/address_start and address_end, and a userspace helper that peeks at a
System.map and injects the right values - then it's a simple compare of the
high/low addresses provided against the caller address.

Attachment: pgp00000.pgp
Description: PGP signature