Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756001AbZLCRpL (ORCPT ); Thu, 3 Dec 2009 12:45:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755012AbZLCRpL (ORCPT ); Thu, 3 Dec 2009 12:45:11 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:62567 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754314AbZLCRpK (ORCPT ); Thu, 3 Dec 2009 12:45:10 -0500 Subject: Re: [PATCH v9 03/10] tracing: add an endian argument to scripts/recordmcount.pl From: Steven Rostedt Reply-To: rostedt@goodmis.org To: Wu Zhangjin Cc: Ralf Baechle , Nicholas Mc Guire , zhangfx@lemote.com, Ingo Molnar , Thomas Gleixner , Frederic Weisbecker , linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Wu Zhangjin In-Reply-To: <267c0824194b659b46fc038ba43492df30369fec.1258719323.git.wuzhangjin@gmail.com> References: <51e30436a435480f1f0dec146a82f2b250900690.1258719323.git.wuzhangjin@gmail.com> <267c0824194b659b46fc038ba43492df30369fec.1258719323.git.wuzhangjin@gmail.com> Content-Type: text/plain Organization: Kihon Technologies Inc. Date: Thu, 03 Dec 2009 12:45:14 -0500 Message-Id: <1259862314.12870.138.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2012 Lines: 58 On Fri, 2009-11-20 at 20:34 +0800, Wu Zhangjin wrote: > From: Wu Zhangjin > > MIPS and some other architectures need this argument to handle > big/little endian respectively. > > Signed-off-by: Wu Zhangjin I don't think I acked this version. But just to make it official: Acked-by: Steven Rostedt -- Steve > --- > 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)" \ > "$(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 f0d1445..24604d4 100755 > --- a/scripts/recordmcount.pl > +++ b/scripts/recordmcount.pl > @@ -113,13 +113,13 @@ $P =~ s@.*/@@g; > > my $V = '0.1'; > > -if ($#ARGV != 10) { > - print "usage: $P arch bits objdump objcopy cc ld nm rm mv is_module inputfile\n"; > +if ($#ARGV != 11) { > + 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 -- 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/