ftrace: Avoid recording mcount on .init sections directly
authorSteven Rostedt <srostedt@redhat.com>
Tue, 12 Apr 2011 23:06:39 +0000 (19:06 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 17 May 2011 14:41:52 +0000 (10:41 -0400)
commit5f9b93c39239507d2af03f79c8b0df9ebb9be768
tree268541155d12f0a400f22c18ce93f2efd0335020
parenta3a8350ab2f588f3a7a08dc86658bf90773f9a52
ftrace: Avoid recording mcount on .init sections directly

The init and exit sections should not be traced and adding a call to
mcount to them is a waste of text and instruction cache. Have the
macro section attributes include notrace to ignore these functions
for tracing from the build.

Link: http://lkml.kernel.org/r/20110421023738.953028219@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/init.h