tracing: Check absolute path of input file in recordmcount.pl
authorLi Hong <lihong.hi@gmail.com>
Wed, 28 Oct 2009 05:03:32 +0000 (13:03 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 29 Oct 2009 19:11:43 +0000 (15:11 -0400)
commitbdd3b052c63b2c19a0118937f500985c01a19956
tree4625bcea7646f3ac04395dffc5cc226f4927e9ad
parente2d753fac5b3954a3b6001f98479f0435fe7c868
tracing: Check absolute path of input file in recordmcount.pl

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>
scripts/recordmcount.pl