]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ftrace: dynamic ftrace process only text section
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Oct 2008 13:32:58 +0000 (09:32 -0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 23 Oct 2008 13:58:20 +0000 (15:58 +0200)
commit34698bcbdf7b0629d6c873b5da7c63073fb45361
tree25086d1711e4a99cc3c36c9b96567d2052d06b0d
parentdce9d18adde74b8e36b9e4a8a49ddf066bad0b3b
ftrace: dynamic ftrace process only text section

The text section stays in memory without ever leaving. With the exception
of modules, but modules know how to handle that case. With the dynamic
ftrace tracer, we need to make sure that it does not try to modify code
that no longer exists. The only safe section is .text.

This patch changes the recordmcount script to only record the mcount calls
in the .text sections.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
scripts/recordmcount.pl