]> git.karo-electronics.de Git - linux-beck.git/blobdiff - scripts/recordmcount.pl
ftrace, ia64: explictly ignore a file in recordmcount.pl
[linux-beck.git] / scripts / recordmcount.pl
index 282485a22bf8d8cdde4b7398e0ac57654fcc3ef3..070042b4ccd5075a89a96f41d615da41bb060220 100755 (executable)
@@ -109,6 +109,11 @@ if ($#ARGV < 7) {
 my ($arch, $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
+if ($inputfile eq "kernel/trace/ftrace.o") {
+    exit(0);
+}
+
 # Acceptable sections to record.
 my %text_sections = (
      ".text" => 1,