From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.74) (envelope-from ) id 1PrhSN-0001qQ-RW for ltp-list@lists.sourceforge.net; Tue, 22 Feb 2011 01:54:27 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.74) id 1PrhSM-0003uR-NQ for ltp-list@lists.sourceforge.net; Tue, 22 Feb 2011 01:54:27 +0000 Date: Tue, 22 Feb 2011 09:58:14 +0800 From: Han Pingtian Message-ID: <20110222015814.GA2883@hpt.nay.redhat.com> References: <20110210072315.GA7909@hpt.nay.redhat.com> <4D6217CB.1040506@cn.fujitsu.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4D6217CB.1040506@cn.fujitsu.com> Subject: Re: [LTP] [PATCH] Fix disable set_ftrace_pid in ftrace_set_ftrace_pid.sh List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Li Zefan Cc: ltp-list@lists.sourceforge.net On Mon, Feb 21, 2011 at 03:44:11PM +0800, Li Zefan wrote: > Han Pingtian wrote: > > It seems we need echo -1 to set_ftrace_pid to disable in. Or we'll get > > these error message when running ftrace_stress: > > > > kernel version? 2.6.32-114.0.1.el6.x86_64 , RHEL6.1. > > This is the result from latest kernel: > > # echo > set_ftrace_pid > # echo -1 > set_ftrace_pid > bash: echo: write error: Invalid argument > Looks like latest kernel changed the behaviour. But the Documentation/trace/ftrace.txt hasn't been updated: yum-updatesd-3111 [003] 1637.254683: lock_hrtimer_base <-hrtimer_try_to_cancel yum-updatesd-3111 [003] 1637.254685: fget_light <-do_sys_poll yum-updatesd-3111 [003] 1637.254686: pipe_poll <-do_sys_poll # echo -1 > set_ftrace_pid # cat trace |head # tracer: function # # TASK-PID CPU# TIMESTAMP FUNCTION Thanks. > > ... > > ftrace_stress_test/ftrace_stress/ftrace_set_ftrace_pid.sh: line 39: echo: write error: Invalid argument > > ... > > --- > > .../ftrace_stress/ftrace_set_ftrace_pid.sh | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress/ftrace_set_ftrace_pid.sh b/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress/ftrace_set_ftrace_pid.sh > > index 541215c..bd08f04 100755 > > --- a/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress/ftrace_set_ftrace_pid.sh > > +++ b/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress/ftrace_set_ftrace_pid.sh > > @@ -36,7 +36,7 @@ for ((; ; )) > > eval echo $str >> "$TRACING_PATH"/set_ftrace_pid > > } > > > > - echo > "$TRACING_PATH"/set_ftrace_pid > > + echo -1 > "$TRACING_PATH"/set_ftrace_pid > > } > > > > sleep 1 -- Han Pingtian Quality Engineer hpt @ #kernel-qe Red Hat, Inc Freedom ... courage ... Commitment ... ACCOUNTABILITY ------------------------------------------------------------------------------ Index, Search & Analyze Logs and other IT data in Real-Time with Splunk Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. Free Software Download: http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list