diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-05-10 04:10:43 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-05-16 15:05:06 -0400 |
commit | f29638868280534ed7e2fdd93b31557232597940 (patch) | |
tree | df11bf6f18442c29b5c76566560e8874c040d9d4 /scripts/recordmcount.pl | |
parent | 521ccb5c4aece609311bfa7157910a8f0c942af5 (diff) |
ftrace/s390: 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 414e7f5e42ec..858966ab019c 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
@@ -243,12 +243,14 @@ if ($arch eq "x86_64") { | |||
243 | 243 | ||
244 | } elsif ($arch eq "s390" && $bits == 32) { | 244 | } elsif ($arch eq "s390" && $bits == 32) { |
245 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_32\\s+_mcount\$"; | 245 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_32\\s+_mcount\$"; |
246 | $mcount_adjust = -4; | ||
246 | $alignment = 4; | 247 | $alignment = 4; |
247 | $ld .= " -m elf_s390"; | 248 | $ld .= " -m elf_s390"; |
248 | $cc .= " -m31"; | 249 | $cc .= " -m31"; |
249 | 250 | ||
250 | } elsif ($arch eq "s390" && $bits == 64) { | 251 | } elsif ($arch eq "s390" && $bits == 64) { |
251 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_(PC|PLT)32DBL\\s+_mcount\\+0x2\$"; | 252 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_(PC|PLT)32DBL\\s+_mcount\\+0x2\$"; |
253 | $mcount_adjust = -8; | ||
252 | $alignment = 8; | 254 | $alignment = 8; |
253 | $type = ".quad"; | 255 | $type = ".quad"; |
254 | $ld .= " -m elf64_s390"; | 256 | $ld .= " -m elf64_s390"; |