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.pl | |
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.pl')
-rwxr-xr-x | scripts/recordmcount.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index a871cd414055..414e7f5e42ec 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
@@ -223,6 +223,7 @@ if ($arch eq "x86_64") { | |||
223 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount([+-]0x[0-9a-zA-Z]+)?\$"; | 223 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount([+-]0x[0-9a-zA-Z]+)?\$"; |
224 | $type = ".quad"; | 224 | $type = ".quad"; |
225 | $alignment = 8; | 225 | $alignment = 8; |
226 | $mcount_adjust = -1; | ||
226 | 227 | ||
227 | # force flags for this arch | 228 | # force flags for this arch |
228 | $ld .= " -m elf_x86_64"; | 229 | $ld .= " -m elf_x86_64"; |
@@ -232,6 +233,7 @@ if ($arch eq "x86_64") { | |||
232 | 233 | ||
233 | } elsif ($arch eq "i386") { | 234 | } elsif ($arch eq "i386") { |
234 | $alignment = 4; | 235 | $alignment = 4; |
236 | $mcount_adjust = -1; | ||
235 | 237 | ||
236 | # force flags for this arch | 238 | # force flags for this arch |
237 | $ld .= " -m elf_i386"; | 239 | $ld .= " -m elf_i386"; |