| To: | linux-mips@linux-mips.org, linux-kernel@vger.kernel.org |
|---|---|
| Subject: | [PATCH v3] add an endian argument to scripts/recordmcount.pl |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Sun, 14 Jun 2009 23:52:13 +0800 |
| Cc: | Wang Liming <liming.wang@windriver.com>, Wu Zhangjin <wuzj@lemote.com>, Steven Rostedt <rostedt@goodmis.org>, Ralf Baechle <ralf@linux-mips.org>, Thomas Gleixner <tglx@linutronix.de>, Nicholas Mc Guire <der.herr@hofr.at>, Ingo Molnar <mingo@elte.hu> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=pueyoD/A9IYpdD5073UD3a2qyFHvcNnQrpwOjNKYMKc=; b=vs3bv9In1iM7D7l/OEj711tV93rRI9nH7/XcVvSXf60vj/cGKxYW/ItMtgLaus5HR2 yiZiOZKVuOR9DVeMQa8+siMV18oleLiVND6hnDlxTLb7yA4sgPs/rHDHmeqJcuTGxk1v HgV7J3W+lZQ7+ey9kwAl1sVto0zhrPdxJBhR8= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=BUcFjYxPhtKqANYiBol25wti6IvREcSPzpPkSXOguQ6S7CVBssyxW9KG2O8/o05Wpr ppceG8qfS7YoE1R8dUbf5r5TJ0AryS1+Y08AeOcUYkTpC2l6SO8xHScKT4aRIZgzZ//n ZUuYGt2unzY5Pw204et/2V6MLBo1ZqvU7++d0= |
| In-reply-to: | <cover.1244994151.git.wuzj@lemote.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cover.1244994151.git.wuzj@lemote.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzj@lemote.com>
mips architecture need this argument to handle big/little endian
differently.
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
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 5c4b7a4..548d575 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -207,6 +207,7 @@ endif
ifdef CONFIG_FTRACE_MCOUNT_RECORD
cmd_record_mcount = 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 0fae7da..f1e3e9c 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -100,13 +100,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
--
1.6.0.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v3] mips specific system call tracer, Wu Zhangjin |
|---|---|
| Next by Date: | [PATCH] MIPS: Disable address swizzling on __raw MMIO operations (resend), Kevin Cernekee |
| Previous by Thread: | [PATCH v3] mips specific system call tracer, Wu Zhangjin |
| Next by Thread: | [PATCH] MIPS: Disable address swizzling on __raw MMIO operations (resend), Kevin Cernekee |
| Indexes: | [Date] [Thread] [Top] [All Lists] |