From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 21 Oct 2009 17:27:05 +0200 (CEST) Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:50502 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S1493648AbZJUP07 (ORCPT ); Wed, 21 Oct 2009 17:26:59 +0200 Received: from [192.168.23.10] (really [74.67.89.75]) by hrndva-omta01.mail.rr.com with ESMTP id <20091021152653016.DCCX26298@hrndva-omta01.mail.rr.com>; Wed, 21 Oct 2009 15:26:53 +0000 Subject: Re: [PATCH -v4 6/9] tracing: add an endian argument to scripts/recordmcount.pl From: Steven Rostedt Reply-To: rostedt@goodmis.org To: Wu Zhangjin Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Thomas Gleixner , Ralf Baechle , Nicholas Mc Guire , Wu Zhangjin In-Reply-To: <5dda13e8e3a9c9dba4bb7179183941bda502604f.1256135456.git.wuzhangjin@gmail.com> References: <028867b99ec532b84963a35e7d552becc783cafc.1256135456.git.wuzhangjin@gmail.com> <2f73eae542c47ac5bbb9f7280e6c0271d193e90d.1256135456.git.wuzhangjin@gmail.com> <3f0d3515f74a58f4cfd11e61b62a129fdc21e3a7.1256135456.git.wuzhangjin@gmail.com> <96110ea5dd4d3d54eb97d0bb708a5bd81c7a50b5.1256135456.git.wuzhangjin@gmail.com> <5dda13e8e3a9c9dba4bb7179183941bda502604f.1256135456.git.wuzhangjin@gmail.com> Content-Type: text/plain Organization: Kihon Technologies Inc. Date: Wed, 21 Oct 2009 11:26:52 -0400 Message-Id: <1256138812.18347.3043.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 24419 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: rostedt@goodmis.org Precedence: bulk X-list: linux-mips On Wed, 2009-10-21 at 22:35 +0800, Wu Zhangjin wrote: > MIPS architecture need this argument to handle big/little endian > respectively. > > Signed-off-by: Wu Zhangjin > --- > scripts/Makefile.build | 1 + > scripts/recordmcount.pl | 6 +++--- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index 341b589..0b94d2f 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -207,6 +207,7 @@ endif > > ifdef CONFIG_FTRACE_MCOUNT_RECORD > cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ > + "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ I thought I added this already?? /me goes and looks Hmm, not there. Did a patch get lost? Thanks, -- Steve > "$(if $(CONFIG_64BIT),64,32)" \ > "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ > "$(if $(part-of-module),1,0)" "$(@)"; > diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl > index 090d300..daee038 100755 > --- a/scripts/recordmcount.pl > +++ b/scripts/recordmcount.pl > @@ -99,13 +99,13 @@ $P =~ s@.*/@@g; > > my $V = '0.1'; > > -if ($#ARGV < 7) { > - print "usage: $P arch bits objdump objcopy cc ld nm rm mv is_module inputfile\n"; > +if ($#ARGV < 8) { > + print "usage: $P arch endian bits objdump objcopy cc ld nm rm mv is_module inputfile\n"; > print "version: $V\n"; > exit(1); > } > > -my ($arch, $bits, $objdump, $objcopy, $cc, > +my ($arch, $endian, $bits, $objdump, $objcopy, $cc, > $ld, $nm, $rm, $mv, $is_module, $inputfile) = @ARGV; > > # This file refers to mcount and shouldn't be ftraced, so lets' ignore it