hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/scripts/recordmcount.pl
....@@ -1,6 +1,6 @@
11 #!/usr/bin/env perl
2
+# SPDX-License-Identifier: GPL-2.0-only
23 # (c) 2008, Steven Rostedt <srostedt@redhat.com>
3
-# Licensed under the terms of the GNU GPL License version 2
44 #
55 # recordmcount.pl - makes a section called __mcount_loc that holds
66 # all the offsets to the calls to mcount.
....@@ -401,6 +401,9 @@
401401 } elsif ($arch eq "nds32") {
402402 $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_NDS32_HI20_RELA\\s+_mcount\$";
403403 $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;
404407 } else {
405408 die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
406409 }
....@@ -497,7 +500,7 @@
497500 #
498501 # Step 2: find the sections and mcount call sites
499502 #
500
-open(IN, "$objdump -hdr $inputfile|") || die "error running $objdump";
503
+open(IN, "LANG=C $objdump -hdr $inputfile|") || die "error running $objdump";
501504
502505 my $text;
503506