Commit d144d5ee6a265823d39f75ecfed351a516295183

Authored by Liming Wang
Committed by Ingo Molnar
1 parent 509dceef64

ftrace: adding other non-leaving .text sections

Impact: widen the scope of recordmcount.pl

Besides .text section, there are three .text sections that won't
be freed after kernel booting. They are: .sched.text, .spinlock.text
and .kprobes.text, which contain functions we can trace. But the last
section ".kprobes.text" is particular, which has been marked as "notrace",
we ignore it. Thus we add other two sections.

Signed-off-by: Liming Wang <liming.wang@windriver.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

scripts/recordmcount.pl
... ... @@ -112,6 +112,8 @@
112 112 # Acceptable sections to record.
113 113 my %text_sections = (
114 114 ".text" => 1,
  115 + ".sched.text" => 1,
  116 + ".spinlock.text" => 1,
115 117 );
116 118  
117 119 $objdump = "objdump" if ((length $objdump) == 0);