From: Steven Rostedt <rostedt@goodmis.org>
To: "Pádraig Brady" <P@draigBrady.com>
Cc: Namhyung Kim <namhyung@kernel.org>,
Shuah Khan <shuahkh@osg.samsung.com>,
LKML <linux-kernel@vger.kernel.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Dave Jones <davej@codemonkey.org.uk>,
Luis Henriques <luis.henriques@canonical.com>
Subject: Re: [PATCH] ftracetest: Do not use usleep
Date: Mon, 30 Mar 2015 21:29:47 -0400 [thread overview]
Message-ID: <20150330212947.4648ce88@grimm.local.home> (raw)
In-Reply-To: <5519F376.30105@draigBrady.com>
On Tue, 31 Mar 2015 02:08:06 +0100
Pádraig Brady <P@draigBrady.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
prev parent reply other threads:[~2015-03-31 1:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 0:32 [PATCH] ftracetest: Do not use usleep Namhyung Kim
2015-03-30 20:47 ` Shuah Khan
2015-03-30 21:15 ` Steven Rostedt
2015-03-31 0:48 ` Namhyung Kim
2015-03-31 1:04 ` Steven Rostedt
2015-03-31 1:08 ` Pádraig Brady
2015-03-31 1:29 ` Steven Rostedt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150330212947.4648ce88@grimm.local.home \
--to=rostedt@goodmis.org \
--cc=P@draigBrady.com \
--cc=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=luis.henriques@canonical.com \
--cc=mpe@ellerman.id.au \
--cc=namhyung@kernel.org \
--cc=shuahkh@osg.samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox