Skip to content

Commit

Permalink
ftrace: adding other non-leaving .text sections
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Liming Wang authored and Ingo Molnar committed Nov 26, 2008
1 parent 509dcee commit d144d5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
# Acceptable sections to record.
my %text_sections = (
".text" => 1,
".sched.text" => 1,
".spinlock.text" => 1,
);

$objdump = "objdump" if ((length $objdump) == 0);
Expand Down

0 comments on commit d144d5e

Please sign in to comment.