]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8e246eb125b66881cdd2405ca455738894bf35a
tree03f98454af8c6756177aa053ae7440373007f67d
parentb0711ba0215d0ad66093933068c727b24c9fc1ea
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