lkml.org 
[lkml]   [2011]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 04/15] ftrace: Add .kprobe.text section to whitelist for recordmcount.c
    From: Steven Rostedt <srostedt@redhat.com>

    The .kprobe.text section is safe to modify mcount to nop and tracing.
    Add it to the whitelist in recordmcount.c and recordmcount.pl.

    Cc: John Reiser <jreiser@bitwagon.com>
    Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Link: http://lkml.kernel.org/r/20110421023737.743350547@goodmis.org
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    ---
    scripts/recordmcount.c | 1 +
    scripts/recordmcount.pl | 1 +
    2 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
    index 4ebd839..37c5965 100644
    --- a/scripts/recordmcount.c
    +++ b/scripts/recordmcount.c
    @@ -211,6 +211,7 @@ is_mcounted_section_name(char const *const txtname)
    strcmp(".sched.text", txtname) == 0 ||
    strcmp(".spinlock.text", txtname) == 0 ||
    strcmp(".irqentry.text", txtname) == 0 ||
    + strcmp(".kprobes.text", txtname) == 0 ||
    strcmp(".text.unlikely", txtname) == 0;
    }

    diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
    index 4be0dee..a871cd4 100755
    --- a/scripts/recordmcount.pl
    +++ b/scripts/recordmcount.pl
    @@ -134,6 +134,7 @@ my %text_sections = (
    ".sched.text" => 1,
    ".spinlock.text" => 1,
    ".irqentry.text" => 1,
    + ".kprobes.text" => 1,
    ".text.unlikely" => 1,
    );

    --
    1.7.4.4



    \
     
     \ /
      Last update: 2011-05-18 18:15    [W:3.006 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site