Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932119AbbBXSXE (ORCPT ); Tue, 24 Feb 2015 13:23:04 -0500 Received: from lists.s-osg.org ([54.187.51.154]:37638 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752769AbbBXSXB (ORCPT ); Tue, 24 Feb 2015 13:23:01 -0500 Message-ID: <54ECC182.5080109@osg.samsung.com> Date: Tue, 24 Feb 2015 11:22:58 -0700 From: Shuah Khan Organization: Samsung Open Source Group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Steven Rostedt CC: Dave Jones , Linux Kernel , namhyung@kernel.org, Shuah Khan Subject: Re: [PATCH] Remove redhat'ism from ftrace selftests. References: <20150224161927.GA4998@codemonkey.org.uk> <20150224131810.38d73389@gandalf.local.home> In-Reply-To: <20150224131810.38d73389@gandalf.local.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2917 Lines: 103 On 02/24/2015 11:18 AM, Steven Rostedt wrote: > > Shuah, > > Can you take this in your tree? Yes I can do that. This must be the original patch email: https://lkml.org/lkml/2015/2/24/435 -- Shuah > > On Tue, 24 Feb 2015 11:19:27 -0500 > Dave Jones wrote: > >> usleep(1) is a Red Hat'ism (bizarrely provided by initscripts), >> that isn't available on other distributions. >> To make this work elsewhere, convert to using fractional >> shell sleeps. >> >> Signed-off-by: Dave Jones >> > > Acked-by: Steven Rostedt > > -- Steve > >> diff --git a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc >> index 668616d9bb03..ecc74d801b97 100644 >> --- a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc >> +++ b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc >> @@ -21,7 +21,7 @@ reset_tracer >> do_reset >> >> echo 'sched:sched_switch' > set_event >> -usleep 1 >> +sleep 0.1 >> >> count=`cat trace | grep sched_switch | wc -l` >> if [ $count -eq 0 ]; then >> @@ -31,7 +31,7 @@ fi >> do_reset >> >> echo 1 > events/sched/sched_switch/enable >> -usleep 1 >> +sleep 0.1 >> >> count=`cat trace | grep sched_switch | wc -l` >> if [ $count -eq 0 ]; then >> @@ -41,7 +41,7 @@ fi >> do_reset >> >> echo 0 > events/sched/sched_switch/enable >> -usleep 1 >> +sleep 0.1 >> >> count=`cat trace | grep sched_switch | wc -l` >> if [ $count -ne 0 ]; then >> diff --git a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc >> index 655c415b6e7f..019766c59db2 100644 >> --- a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc >> +++ b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc >> @@ -21,7 +21,7 @@ reset_tracer >> do_reset >> >> echo 'sched:*' > set_event >> -usleep 1 >> +sleep 0.1 >> >> count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` >> if [ $count -lt 3 ]; then >> @@ -31,7 +31,7 @@ fi >> do_reset >> >> echo 1 > events/sched/enable >> -usleep 1 >> +sleep 0.1 >> >> count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` >> if [ $count -lt 3 ]; then >> @@ -41,7 +41,7 @@ fi >> do_reset >> >> echo 0 > events/sched/enable >> -usleep 1 >> +sleep 0.1 >> >> count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` >> if [ $count -ne 0 ]; then > -- 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/