ftrace: enable mcount recording for modules
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 14 Aug 2008 19:45:09 +0000 (15:45 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:34:47 +0000 (10:34 +0200)
commit90d595fe5ca4b685465c068907e6e554760abea8
tree03f98454af8c6756177aa053ae7440373007f67d
parent68bf21aa15c85d2e9b623dcda2b1ed8893275fa1
ftrace: enable mcount recording for modules

This patch enables the loading of the __mcount_section of modules and
changing all the callers of mcount into nops.

The modification is done before the init_module function is called, so
again, we do not need to use kstop_machine to make these changes.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace.h
kernel/module.c
kernel/trace/ftrace.c