Re: [patch 1/7] documentation and scripts

From: Andrew Morton
Date: Fri Oct 13 2006 - 15:01:58 EST


On Sat, 14 Oct 2006 02:47:24 +0900
Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote:

> On Thu, Oct 12, 2006 at 02:37:13PM -0700, Andrew Morton wrote:
>
> > So I wonder if it'd be better to make this have units of "one millionth",
> > or simply make this tunable "1/(probability of failure)". So setting it to
> > 1,000,000 gives you one failure per million calls, on average.
>
> /debug/*/interval is available for this purpose.
> The combination of below commands gives one failure per million calls.
>
> # echo 1000000 > /debug/failslab/interval
> # echo 100 > /debug/failslab/probability

Oh. What are the units of "interval"?

(I find it's nice to put the units in the actual filename if practical -
it's self-documenting)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/