Skip to content

Commit e6299d2

Browse files
lzufalconralfbaechle
authored andcommitted
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>
1 parent 69a7d1b commit e6299d2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎scripts/Makefile.build‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ endif
207207

208208
ifdef CONFIG_FTRACE_MCOUNT_RECORD
209209
cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
210+
"$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \
210211
"$(if $(CONFIG_64BIT),64,32)" \
211212
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \
212213
"$(if $(part-of-module),1,0)" "$(@)";

‎scripts/recordmcount.pl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@
113113

114114
my $V = '0.1';
115115

116-
if ($#ARGV != 10) {
117-
print "usage: $P arch bits objdump objcopy cc ld nm rm mv is_module inputfile\n";
116+
if ($#ARGV != 11) {
117+
print "usage: $P arch endian bits objdump objcopy cc ld nm rm mv is_module inputfile\n";
118118
print "version: $V\n";
119119
exit(1);
120120
}
121121

122-
my ($arch, $bits, $objdump, $objcopy, $cc,
122+
my ($arch, $endian, $bits, $objdump, $objcopy, $cc,
123123
$ld, $nm, $rm, $mv, $is_module, $inputfile) = @ARGV;
124124

125125
# This file refers to mcount and shouldn't be ftraced, so lets' ignore it

0 commit comments

Comments
 (0)