Commit 9f087e76 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt

ftrace: Add .kprobe.text section to whitelist for recordmcount.c

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.orgSigned-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent e90b0c8b
...@@ -211,6 +211,7 @@ is_mcounted_section_name(char const *const txtname) ...@@ -211,6 +211,7 @@ is_mcounted_section_name(char const *const txtname)
strcmp(".sched.text", txtname) == 0 || strcmp(".sched.text", txtname) == 0 ||
strcmp(".spinlock.text", txtname) == 0 || strcmp(".spinlock.text", txtname) == 0 ||
strcmp(".irqentry.text", txtname) == 0 || strcmp(".irqentry.text", txtname) == 0 ||
strcmp(".kprobes.text", txtname) == 0 ||
strcmp(".text.unlikely", txtname) == 0; strcmp(".text.unlikely", txtname) == 0;
} }
......
...@@ -134,6 +134,7 @@ my %text_sections = ( ...@@ -134,6 +134,7 @@ my %text_sections = (
".sched.text" => 1, ".sched.text" => 1,
".spinlock.text" => 1, ".spinlock.text" => 1,
".irqentry.text" => 1, ".irqentry.text" => 1,
".kprobes.text" => 1,
".text.unlikely" => 1, ".text.unlikely" => 1,
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment