aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Fleming <mjf@gentoo.org>2008-11-12 06:11:47 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:42:52 -0500
commitfad57feba77d2e5b183e068cb6b90693e4567b40 (patch)
tree478788d5a05a30f638540d345e9d09c5733687da /scripts
parentef6aff6884408db95ceb0f678f583536e0bd48f8 (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-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}