tracing: Move conditional into update_funcs() in recordmcount.pl
authorLi Hong <lihong.hi@gmail.com>
Wed, 28 Oct 2009 05:07:03 +0000 (13:07 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 29 Oct 2009 19:11:54 +0000 (15:11 -0400)
commit6092858c60f168c1950f8ad73880d54271696ec5
tree4a77f87c47959f8fbfe2fdb99532575e227b0663
parent306dcf47d28aaf9aedfafb17a602768584cfc0f2
tracing: Move conditional into update_funcs() in recordmcount.pl

Move all the condition validations into the function update_funcs().
Also update_funcs should not die if $ref_func is undefined for there may be
more than one valid section in an object file.

Signed-off-by: Li Hong <lihong.hi@gmail.com>
LKML-Reference: <20091028050703.GG30758@uhli>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/recordmcount.pl