diff options
author | Matt Fleming <mjf@gentoo.org> | 2008-11-12 20:11:47 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 18:42:52 +0900 |
commit | fad57feba77d2e5b183e068cb6b90693e4567b40 (patch) | |
tree | 478788d5a05a30f638540d345e9d09c5733687da /scripts | |
parent | ef6aff6884408db95ceb0f678f583536e0bd48f8 (diff) | |
download | kernel_samsung_crespo-fad57feba77d2e5b183e068cb6b90693e4567b40.zip kernel_samsung_crespo-fad57feba77d2e5b183e068cb6b90693e4567b40.tar.gz kernel_samsung_crespo-fad57feba77d2e5b183e068cb6b90693e4567b40.tar.bz2 |
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 6b9fe3e..c67cec8 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl @@ -167,6 +167,17 @@ if ($arch eq "x86_64") { $objcopy .= " -O elf32-i386"; $cc .= " -m32"; +} elsif ($arch eq "sh") { + $section_regex = "Disassembly of section\\s+(\\S+):"; + $function_regex = "^([0-9a-fA-F]+)\\s+<(.*?)>:"; + $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount\$"; + $type = ".long"; + + # force flags for this arch + $ld .= " -m shlelf_linux"; + $objcopy .= " -O elf32-sh-linux"; + $cc .= " -m32"; + } else { die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; } |