]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1031270691f8fdd7679a25146ccbf3f02185843b
tree236cd6b56ea2d116002f6c722b86155185860f1c
parentdc716bf790fe453cfde0fc60d41d0bce85a9ceea
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