]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ftrace: Add .ref.text as one of the safe areas to trace
authorSteven Rostedt <srostedt@redhat.com>
Fri, 11 Feb 2011 21:43:33 +0000 (16:43 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 10 Mar 2011 15:34:39 +0000 (10:34 -0500)
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>
scripts/recordmcount.c
scripts/recordmcount.pl

index 038b3d1e29814f789ec6728708c4f71858ef7234..f9f6f52db772830c4712d080063773a6187020c5 100644 (file)
@@ -206,7 +206,8 @@ static uint32_t (*w2)(uint16_t);
 static int
 is_mcounted_section_name(char const *const txtname)
 {
-       return 0 == strcmp(".text",          txtname) ||
+       return 0 == strcmp(".text",           txtname) ||
+               0 == strcmp(".ref.text",      txtname) ||
                0 == strcmp(".sched.text",    txtname) ||
                0 == strcmp(".spinlock.text", txtname) ||
                0 == strcmp(".irqentry.text", txtname) ||
index 1d7963f4ee79b853055337f3eed7ca80731dc667..4be0deea71ca6f947b6c1d47c28c431cae88c3c7 100755 (executable)
@@ -130,6 +130,7 @@ if ($inputfile =~ m,kernel/trace/ftrace\.o$,) {
 # Acceptable sections to record.
 my %text_sections = (
      ".text" => 1,
+     ".ref.text" => 1,
      ".sched.text" => 1,
      ".spinlock.text" => 1,
      ".irqentry.text" => 1,