[lkml]   [2009]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[tip:tracing/core] tracing: Check absolute path of input file in
    Commit-ID:  bdd3b052c63b2c19a0118937f500985c01a19956
    Author: Li Hong <>
    AuthorDate: Wed, 28 Oct 2009 13:03:32 +0800
    Committer: Steven Rostedt <>
    CommitDate: Thu, 29 Oct 2009 15:11:43 -0400

    tracing: Check absolute path of input file in

    The ftrace.c file may reference the mcount function and this may interfere
    with the 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 <>
    LKML-Reference: <20091028050332.GC30758@uhli>
    Signed-off-by: Steven Rostedt <>
    scripts/ | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/scripts/ b/scripts/
    index a512af1..b80e5d0 100755
    --- a/scripts/
    +++ b/scripts/
    @@ -123,7 +123,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") {
    +if ($inputfile =~ m,kernel/trace/ftrace\.o$,) {

     \ /
      Last update: 2009-10-30 17:23    [W:0.020 / U:3.104 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site