Re: [PATCH] ftracetest: Replace usleep with sleep 0.000001
From: Steven Rostedt
Date: Sat Dec 20 2014 - 17:07:41 EST
On Sat, 20 Dec 2014 21:42:13 +0100
Pavel Machek <pavel@xxxxxx> wrote:
> On Wed 2014-12-10 15:38:27, Michael Ellerman wrote:
> > usleep is a Fedoraism, it's not generally available on Debian based
> > systems AFAICS.
> >
> > GNU sleep accepts a floating point argument, so use that instead.
> >
> > Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
>
> Could ftrace user interface be enhanced not to need random delays?
>
Not sure what you are talking about. These "random delays" are not for
the interface, but instead to force some events to happen and to make
sure they did.
As the subject states, this is for "ftracetest" which is the selftests
for ftrace.
The usleep is basically a "do something to trigger events", and we
don't want to wait long in doing it.
-- Steve
--
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/