ftrace: Add .kprobe.text section to whitelist for recordmcount.c
authorSteven Rostedt <srostedt@redhat.com>
Wed, 6 Apr 2011 18:10:22 +0000 (14:10 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 17 May 2011 14:41:36 +0000 (10:41 -0400)
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
scripts/recordmcount.pl

index 4ebd8399cb331f9ea9c168ea2046fc1f9622b1c2..37c59654c13386a8dd94536d2e3acc2aa8289284 100644 (file)
@@ -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;
 }
 
index 4be0deea71ca6f947b6c1d47c28c431cae88c3c7..a871cd41405580653a41cb89c09b96bfbdc954ea 100755 (executable)
@@ -134,6 +134,7 @@ my %text_sections = (
      ".sched.text" => 1,
      ".spinlock.text" => 1,
      ".irqentry.text" => 1,
+     ".kprobes.text" => 1,
      ".text.unlikely" => 1,
 );