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:
pgpL0AJbPw8LU.pgp
Description: PGP signature
- References:
- [patch 0/5] RFC: fault-injection capabilities
- From: Akinobu Mita <[email protected]>
- [patch 0/5] RFC: fault-injection capabilities
- Prev by Date: Re: [PATCH] BLOCK: Make it possible to disable the block layer
- Next by Date: Re: Serial custom speed deprecated?
- Previous by thread: Re: [patch 0/5] RFC: fault-injection capabilities
- Next by thread: call panic if nl_table allocation fails
- Index(es):