Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752524AbbDCP0U (ORCPT ); Fri, 3 Apr 2015 11:26:20 -0400 Received: from lists.s-osg.org ([54.187.51.154]:42503 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181AbbDCP0T (ORCPT ); Fri, 3 Apr 2015 11:26:19 -0400 Message-ID: <551EB118.201@osg.samsung.com> Date: Fri, 03 Apr 2015 09:26:16 -0600 From: Shuah Khan Organization: Samsung Open Source Group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Namhyung Kim , Steven Rostedt CC: LKML , =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= , Michael Ellerman , Dave Jones , Luis Henriques , Masami Hiramatsu , Shuah Khan Subject: Re: [PATCH v3] ftracetest: Do not use usleep directly References: <1428020878-28690-1-git-send-email-namhyung@kernel.org> In-Reply-To: <1428020878-28690-1-git-send-email-namhyung@kernel.org> 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: 1435 Lines: 39 On 04/02/2015 06:27 PM, 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; } > > For more information to the history of this patch, please refer to: > > Link: http://lkml.kernel.org/r/1427329943-16896-1-git-send-email-namhyung@kernel.org > > Reported-by: Michael Ellerman > Reported-by: Dave Jones > Reported-by: Luis Henriques > Suggested-by: Pádraig Brady > Acked-by: Steven Rostedt > Acked-by: Masami Hiramatsu > Signed-off-by: Namhyung Kim > --- Thanks for getting to this quickly. Applied it to linux-kselftest next for 4.1 thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978 -- 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/