diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-05-10 04:10:41 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-05-16 14:55:57 -0400 |
commit | 521ccb5c4aece609311bfa7157910a8f0c942af5 (patch) | |
tree | 5312027b1397133c6a63bbc915f0d80b86155798 /scripts/recordmcount.c | |
parent | 07d8b595f367f4604e6027ad4cba33cbe3f55e10 (diff) |
ftrace/x86: mcount offset calculation
Do the mcount offset adjustment in the recordmcount.pl/recordmcount.[ch]
at compile time and not in ftrace_call_adjust at run time.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/recordmcount.c')
-rw-r--r-- | scripts/recordmcount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index 0e18975824f7..7648a5d11154 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c | |||
@@ -335,6 +335,7 @@ do_file(char const *const fname) | |||
335 | reltype = R_386_32; | 335 | reltype = R_386_32; |
336 | make_nop = make_nop_x86; | 336 | make_nop = make_nop_x86; |
337 | ideal_nop = ideal_nop5_x86_32; | 337 | ideal_nop = ideal_nop5_x86_32; |
338 | mcount_adjust_32 = -1; | ||
338 | break; | 339 | break; |
339 | case EM_ARM: reltype = R_ARM_ABS32; | 340 | case EM_ARM: reltype = R_ARM_ABS32; |
340 | altmcount = "__gnu_mcount_nc"; | 341 | altmcount = "__gnu_mcount_nc"; |
@@ -350,6 +351,7 @@ do_file(char const *const fname) | |||
350 | make_nop = make_nop_x86; | 351 | make_nop = make_nop_x86; |
351 | ideal_nop = ideal_nop5_x86_64; | 352 | ideal_nop = ideal_nop5_x86_64; |
352 | reltype = R_X86_64_64; | 353 | reltype = R_X86_64_64; |
354 | mcount_adjust_64 = -1; | ||
353 | break; | 355 | break; |
354 | } /* end switch */ | 356 | } /* end switch */ |
355 | 357 | ||