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

Valdis.Kletnieks
2006-08-24T18:42:02Z

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

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 #2: Type: application/pgp-signature, Size: 226 bytes --]