]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace/recordmcount: Add warning logic to warn on mcount not recorded
authorSteven Rostedt <srostedt@redhat.com>
Tue, 12 Apr 2011 22:53:25 +0000 (18:53 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 16 May 2011 18:44:20 +0000 (14:44 -0400)
commit5133c02131a0379ce1f2f2c370e04cbe762e646c
tree7df293e467f93913d1979a0e7131bb6e1977acd7
parent0eb291edac53b85329c76e30c2b67054481cea40
ftrace/recordmcount: Add warning logic to warn on mcount not recorded

There's some sections that should not have mcount recorded and should not have
modifications to the that code. But currently they waste some time by calling
mcount anyway (which simply returns). As the real answer should be to
either whitelist the section or have gcc ignore it fully.

This change adds a option to recordmcount to warn when it finds a section
that is ignored by ftrace but still contains mcount callers. This is not on
by default as developers may not know if the section should be completely
ignored or added to the whitelist.

Cc: John Reiser <jreiser@bitwagon.com>
Link: http://lkml.kernel.org/r/20110421023738.476989377@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/recordmcount.c
scripts/recordmcount.h