Skip to content

Commit

Permalink
tracing: Check absolute path of input file in recordmcount.pl
Browse files Browse the repository at this point in the history
The ftrace.c file may reference the mcount function and this may interfere
with the recordmcount.pl processing. To avoid this, the code does not
process the kernel/trace/ftrace.o. But currently the check is against
a relative path. This patch modifies the check to succeed if the path
is an absolute path.

Signed-off-by: Li Hong <lihong.hi@gmail.com>
LKML-Reference: <20091028050332.GC30758@uhli>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
swanli authored and rostedt committed Oct 29, 2009
1 parent e2d753f commit bdd3b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
$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") {
if ($inputfile =~ m,kernel/trace/ftrace\.o$,) {
exit(0);
}

Expand Down

0 comments on commit bdd3b05

Please sign in to comment.