ftrace/recordmcount: Remove duplicate code to find mcount symbol
authorSteven Rostedt <srostedt@redhat.com>
Thu, 21 Apr 2011 00:47:34 +0000 (20:47 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 17 May 2011 14:41:59 +0000 (10:41 -0400)
commitf6d4f08194d77c86fe3af6e2e4b9184347014926
tree7d8dd5ead0252fa0b4c691a59b9a65d2c8cfcf43
parent406a733db0052fed66d17008430b6047ecea7b92
ftrace/recordmcount: Remove duplicate code to find mcount symbol

The code in sift_rel_mcount() and nop_mcount() to get the mcount symbol
number is identical. Replace the two locations with a call to a function
that does the work.

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