[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150330212947.4648ce88@grimm.local.home>
Date: Mon, 30 Mar 2015 21:29:47 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Pádraig Brady <P@...igBrady.com>
Cc: Namhyung Kim <namhyung@...nel.org>,
Shuah Khan <shuahkh@....samsung.com>,
LKML <linux-kernel@...r.kernel.org>,
Michael Ellerman <mpe@...erman.id.au>,
Dave Jones <davej@...emonkey.org.uk>,
Luis Henriques <luis.henriques@...onical.com>
Subject: Re: [PATCH] ftracetest: Do not use usleep
On Tue, 31 Mar 2015 02:08:06 +0100
Pádraig Brady <P@...igBrady.com> wrote:
> > I'm okay with ping though but worried if some tiny system might lack
> > the ping command..
>
> I'd use a fallback method like:
>
> yield() { sleep .001 || usleep 1 || sleep 1; }
>
> Then just s/usleep 1/yield/
yield() { ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; } ;-)
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists