diff options
author | Matt Fleming <mjf@gentoo.org> | 2008-11-12 06:11:47 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 04:42:52 -0500 |
commit | fad57feba77d2e5b183e068cb6b90693e4567b40 (patch) | |
tree | 478788d5a05a30f638540d345e9d09c5733687da /scripts | |
parent | ef6aff6884408db95ceb0f678f583536e0bd48f8 (diff) |
sh: dynamic ftrace support.
First cut at dynamic ftrace support.
Signed-off-by: Matt Fleming <mjf@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/recordmcount.pl | 11 |
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 | } |