aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/recordmcount.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 6b9fe3eb8360..c67cec8e90f4 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -167,6 +167,17 @@ if ($arch eq "x86_64") {
167 $objcopy .= " -O elf32-i386"; 167 $objcopy .= " -O elf32-i386";
168 $cc .= " -m32"; 168 $cc .= " -m32";
169 169
170} elsif ($arch eq "sh") {
171 $section_regex = "Disassembly of section\\s+(\\S+):";
172 $function_regex = "^([0-9a-fA-F]+)\\s+<(.*?)>:";
173 $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount\$";
174 $type = ".long";
175
176 # force flags for this arch
177 $ld .= " -m shlelf_linux";
178 $objcopy .= " -O elf32-sh-linux";
179 $cc .= " -m32";
180
170} else { 181} else {
171 die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; 182 die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
172} 183}