diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2011-04-06 14:10:22 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2011-05-17 10:41:36 -0400 |
| commit | bde66c3f45d777082a0df01e64870f47ba2a5055 (patch) | |
| tree | 092bbc8b344874ef20b93b27db1d5a8df4e067d8 /scripts | |
| parent | d7e8623ae9cf93a9b517336085a86cabb014ea77 (diff) | |
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.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/recordmcount.c | 1 | ||||
| -rwxr-xr-x | scripts/recordmcount.pl | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index 4ebd8399cb33..37c59654c133 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c | |||
| @@ -211,6 +211,7 @@ is_mcounted_section_name(char const *const txtname) | |||
| 211 | strcmp(".sched.text", txtname) == 0 || | 211 | strcmp(".sched.text", txtname) == 0 || |
| 212 | strcmp(".spinlock.text", txtname) == 0 || | 212 | strcmp(".spinlock.text", txtname) == 0 || |
| 213 | strcmp(".irqentry.text", txtname) == 0 || | 213 | strcmp(".irqentry.text", txtname) == 0 || |
| 214 | strcmp(".kprobes.text", txtname) == 0 || | ||
| 214 | strcmp(".text.unlikely", txtname) == 0; | 215 | strcmp(".text.unlikely", txtname) == 0; |
| 215 | } | 216 | } |
| 216 | 217 | ||
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index 4be0deea71ca..a871cd414055 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
| @@ -134,6 +134,7 @@ my %text_sections = ( | |||
| 134 | ".sched.text" => 1, | 134 | ".sched.text" => 1, |
| 135 | ".spinlock.text" => 1, | 135 | ".spinlock.text" => 1, |
| 136 | ".irqentry.text" => 1, | 136 | ".irqentry.text" => 1, |
| 137 | ".kprobes.text" => 1, | ||
| 137 | ".text.unlikely" => 1, | 138 | ".text.unlikely" => 1, |
| 138 | ); | 139 | ); |
| 139 | 140 | ||
