]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Allow for function tracing to record init functions on boot up
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Mar 2017 21:15:39 +0000 (16:15 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 25 Mar 2017 00:51:49 +0000 (20:51 -0400)
commit5210b1369a628e93c1d61a4f0cdec17b4a6c94bb
tree2fecaaec16fe65febc290be5d67b396d0d0f75e3
parentdfc69291c73751d62177d85d8666043e32125e57
ftrace: Allow for function tracing to record init functions on boot up

Adding a hook into free_reserve_area() that informs ftrace that boot up init
text is being free, lets ftrace safely remove those init functions from its
records, which keeps ftrace from trying to modify text that no longer
exists.

Note, this still does not allow for tracing .init text of modules, as
modules require different work for freeing its init code.

Link: http://lkml.kernel.org/r/1488502497.7212.24.camel@linux.intel.com
Cc: linux-mm@kvack.org
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Requested-by: Todd Brandt <todd.e.brandt@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ftrace.h
include/linux/init.h
kernel/trace/ftrace.c
mm/page_alloc.c
scripts/recordmcount.c
scripts/recordmcount.pl