.. | .. |
---|
1 | 1 | #!/usr/bin/env perl |
---|
| 2 | +# SPDX-License-Identifier: GPL-2.0-only |
---|
2 | 3 | # (c) 2008, Steven Rostedt <srostedt@redhat.com> |
---|
3 | | -# Licensed under the terms of the GNU GPL License version 2 |
---|
4 | 4 | # |
---|
5 | 5 | # recordmcount.pl - makes a section called __mcount_loc that holds |
---|
6 | 6 | # all the offsets to the calls to mcount. |
---|
.. | .. |
---|
401 | 401 | } elsif ($arch eq "nds32") { |
---|
402 | 402 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_NDS32_HI20_RELA\\s+_mcount\$"; |
---|
403 | 403 | $alignment = 2; |
---|
| 404 | +} elsif ($arch eq "csky") { |
---|
| 405 | + $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_CKCORE_PCREL_JSR_IMM26BY2\\s+_mcount\$"; |
---|
| 406 | + $alignment = 2; |
---|
404 | 407 | } else { |
---|
405 | 408 | die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; |
---|
406 | 409 | } |
---|
.. | .. |
---|
497 | 500 | # |
---|
498 | 501 | # Step 2: find the sections and mcount call sites |
---|
499 | 502 | # |
---|
500 | | -open(IN, "$objdump -hdr $inputfile|") || die "error running $objdump"; |
---|
| 503 | +open(IN, "LANG=C $objdump -hdr $inputfile|") || die "error running $objdump"; |
---|
501 | 504 | |
---|
502 | 505 | my $text; |
---|
503 | 506 | |
---|