ftrace/recordmcount: Add helper function get_sym_str_and_relp()
authorSteven Rostedt <srostedt@redhat.com>
Thu, 21 Apr 2011 01:13:06 +0000 (21:13 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 17 May 2011 14:42:02 +0000 (10:42 -0400)
The code to get the symbol, string, and relp pointers in the two functions
sift_rel_mcount() and nop_mcount() are identical and also non-trivial.
Moving this duplicate code into a single helper function makes the code
easier to read and more maintainable.

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

Simple merge