Re: [patch 1/7] documentation and scripts

Andrew Morton
2006-10-13T19:01:40Z

On Sat, 14 Oct 2006 02:47:24 +0900
Akinobu Mita <akinobu.mita@gmail.com> 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)