mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 18:56:14 +00:00
MIPS: Tracing: Add an endian argument to scripts/recordmcount.pl
MIPS and some other architectures need this argument to handle big/little endian respectively. Signed-off-by: Wu Zhangjin <wuzj@lemote.com> Cc: Nicholas Mc Guire <der.herr@hofr.at> Cc: zhangfx@lemote.com Cc: Wu Zhangjin <wuzhangjin@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/674/ Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
69a7d1b3ec
commit
e6299d2677
2 changed files with 4 additions and 3 deletions
|
@ -207,6 +207,7 @@ endif
|
||||||
|
|
||||||
ifdef CONFIG_FTRACE_MCOUNT_RECORD
|
ifdef CONFIG_FTRACE_MCOUNT_RECORD
|
||||||
cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
|
cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
|
||||||
|
"$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \
|
||||||
"$(if $(CONFIG_64BIT),64,32)" \
|
"$(if $(CONFIG_64BIT),64,32)" \
|
||||||
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \
|
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \
|
||||||
"$(if $(part-of-module),1,0)" "$(@)";
|
"$(if $(part-of-module),1,0)" "$(@)";
|
||||||
|
|
|
@ -113,13 +113,13 @@ $P =~ s@.*/@@g;
|
||||||
|
|
||||||
my $V = '0.1';
|
my $V = '0.1';
|
||||||
|
|
||||||
if ($#ARGV != 10) {
|
if ($#ARGV != 11) {
|
||||||
print "usage: $P arch bits objdump objcopy cc ld nm rm mv is_module inputfile\n";
|
print "usage: $P arch endian bits objdump objcopy cc ld nm rm mv is_module inputfile\n";
|
||||||
print "version: $V\n";
|
print "version: $V\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($arch, $bits, $objdump, $objcopy, $cc,
|
my ($arch, $endian, $bits, $objdump, $objcopy, $cc,
|
||||||
$ld, $nm, $rm, $mv, $is_module, $inputfile) = @ARGV;
|
$ld, $nm, $rm, $mv, $is_module, $inputfile) = @ARGV;
|
||||||
|
|
||||||
# This file refers to mcount and shouldn't be ftraced, so lets' ignore it
|
# This file refers to mcount and shouldn't be ftraced, so lets' ignore it
|
||||||
|
|
Loading…
Reference in a new issue