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>
Mon, 16 May 2011 18:53:22 +0000 (14:53 -0400)
commit07d8b595f367f4604e6027ad4cba33cbe3f55e10
tree236cd6b56ea2d116002f6c722b86155185860f1c
parent41b402a201a12efdff4acc990e023a89a409cd41
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