Commit 0da85c09b44bfea07e63ed5324aabc7cfc8a889a
Committed by
Ingo Molnar
1 parent
a0a70c735e
Exists in
master
and in
4 other branches
sh: dynamic ftrace support.
First cut at dynamic ftrace support. [ Steven Rostedt - only updated the recordmcount.pl file. There are updates for PowerPC that will conflict with this, and we need to base off of these changes. ] Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 1 changed file with 11 additions and 0 deletions Side-by-side Diff
scripts/recordmcount.pl
... | ... | @@ -170,6 +170,17 @@ |
170 | 170 | $objcopy .= " -O elf32-i386"; |
171 | 171 | $cc .= " -m32"; |
172 | 172 | |
173 | +} elsif ($arch eq "sh") { | |
174 | + $section_regex = "Disassembly of section\\s+(\\S+):"; | |
175 | + $function_regex = "^([0-9a-fA-F]+)\\s+<(.*?)>:"; | |
176 | + $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount\$"; | |
177 | + $type = ".long"; | |
178 | + | |
179 | + # force flags for this arch | |
180 | + $ld .= " -m shlelf_linux"; | |
181 | + $objcopy .= " -O elf32-sh-linux"; | |
182 | + $cc .= " -m32"; | |
183 | + | |
173 | 184 | } else { |
174 | 185 | die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; |
175 | 186 | } |