Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753404AbbDBNic (ORCPT ); Thu, 2 Apr 2015 09:38:32 -0400 Received: from smtprelay0036.hostedemail.com ([216.40.44.36]:41746 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752941AbbDBNia convert rfc822-to-8bit (ORCPT ); Thu, 2 Apr 2015 09:38:30 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::,RULES_HIT:41:152:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1513:1515:1516:1518:1521:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3872:5007:6261:6678:7875:8531:9040:10004:10400:10848:10967:11232:11658:11914:12043:12517:12519:12740:13069:13311:13357:21060:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: tail00_844236e267b3a X-Filterd-Recvd-Size: 2238 Date: Thu, 2 Apr 2015 09:38:27 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Namhyung Kim , Shuah Khan , LKML , =?UTF-8?B?UMOhZHJhaWc=?= Brady , Michael Ellerman , Dave Jones , Luis Henriques Subject: Re: [PATCH v2.1] ftracetest: Do not use usleep directly Message-ID: <20150402093827.617192f0@gandalf.local.home> In-Reply-To: <551CDA6C.50106@hitachi.com> References: <1427948663-25048-1-git-send-email-namhyung@kernel.org> <1427949253-26883-1-git-send-email-namhyung@kernel.org> <551CDA6C.50106@hitachi.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1275 Lines: 37 On Thu, 02 Apr 2015 14:58:04 +0900 Masami Hiramatsu wrote: > (2015/04/02 13:34), Namhyung Kim wrote: > > The usleep is only provided on distros from Redhat so running ftracetest > > on other distro resulted in failures due to the missing usleep. > > > > The reason of using [u]sleep in the test was to generate (scheduler) > > events. It can be done various ways like this: > > > > yield() { ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; } > > Nice hack! :) Yep, it was Pádraig Brady's idea. > > Acked-by: Masami Hiramatsu Acked-by: Steven Rostedt -- Steve > > > > > Reported-by: Michael Ellerman > > Reported-by: Dave Jones > > Reported-by: Luis Henriques > > Based-on-patch-by: Pádraig Brady > > CC: Masami Hiramatsu > > Signed-off-by: Namhyung Kim > > --- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/