ftrace, ia64: make recordmcount distinct module compile
In IA64, module build and kernel build use different option. Make recordmcount.pl differentiate the two cases. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -100,14 +100,14 @@ $P =~ s@.*/@@g;
|
||||
|
||||
my $V = '0.1';
|
||||
|
||||
if ($#ARGV < 6) {
|
||||
print "usage: $P arch objdump objcopy cc ld nm rm mv inputfile\n";
|
||||
if ($#ARGV < 7) {
|
||||
print "usage: $P arch objdump objcopy cc ld nm rm mv is_module inputfile\n";
|
||||
print "version: $V\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
my ($arch, $bits, $objdump, $objcopy, $cc,
|
||||
$ld, $nm, $rm, $mv, $inputfile) = @ARGV;
|
||||
$ld, $nm, $rm, $mv, $is_module, $inputfile) = @ARGV;
|
||||
|
||||
# Acceptable sections to record.
|
||||
my %text_sections = (
|
||||
|
||||
Reference in New Issue
Block a user