ftrace/recordmcount: mcount address adjustment
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 May 2011 08:10:40 +0000 (10:10 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 17 May 2011 14:42:05 +0000 (10:42 -0400)
commitf215efc50a3c1430735e89915fae188f927d8773
tree0a54d93156f39a92e7540046391861b4fa23750e
parent0286d2d12d78ea8aaf0722473dd20cb609a99709
ftrace/recordmcount: mcount address adjustment

Introduce mcount_adjust{,_32,_64} to the C implementation of
recordmcount analog to $mcount_adjust in the perl script.
The adjustment is added to the address of the relocations
against the mcount symbol. If this adjustment is done by
recordmcount at compile time the ftrace_call_adjust function
can be turned into a nop.

Cc: John Reiser <jreiser@bitwagon.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/recordmcount.h