Commit 1274a9c2e91652e28efa45c3e5886ec82f08bfbe

Authored by Steven Rostedt
Committed by Steven Rostedt
1 parent 10da37a645

ftrace: Add .ref.text as one of the safe areas to trace

The section .ref.text will not go away unexpectedly and is
safe to trace. Add it to the safe list of sections to allow
tracing.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

Showing 2 changed files with 3 additions and 1 deletions Side-by-side Diff

scripts/recordmcount.c
... ... @@ -206,7 +206,8 @@
206 206 static int
207 207 is_mcounted_section_name(char const *const txtname)
208 208 {
209   - return 0 == strcmp(".text", txtname) ||
  209 + return 0 == strcmp(".text", txtname) ||
  210 + 0 == strcmp(".ref.text", txtname) ||
210 211 0 == strcmp(".sched.text", txtname) ||
211 212 0 == strcmp(".spinlock.text", txtname) ||
212 213 0 == strcmp(".irqentry.text", txtname) ||
scripts/recordmcount.pl
... ... @@ -130,6 +130,7 @@
130 130 # Acceptable sections to record.
131 131 my %text_sections = (
132 132 ".text" => 1,
  133 + ".ref.text" => 1,
133 134 ".sched.text" => 1,
134 135 ".spinlock.text" => 1,
135 136 ".irqentry.text" => 1,