[PATCH] tracing: recordmcount.pl Support absolute path check on $inputfile

From: Li Hong
Date: Tue Oct 27 2009 - 00:32:18 EST


Signed-off-by: Li Hong <lihong.hi@xxxxxxxxx>

diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 0850b83..94daf9e 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -122,9 +122,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);
-}
+exit (0) if ($inputfile =~ "kernel/trace/ftrace.o");

# Acceptable sections to record.
my %text_sections = (
--
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/