]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 16 May 2011 18:46:30 +0000 (14:46 -0400)
commit4ff6ad08a2079e380fcae17b28502b129cef0caf
treec5a7c4b04693e459e22780f66d2d7e625d9d1243
parente5e5799eb71679e67be19422e503c4bece602aa5
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