History

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. ]

Matt Fleming committed 18 years ago

Commit 0da85c01 parent a0a70c71 file · +11 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/recordmcount.pl+11−0
@@ -170,6 +170,17 @@ if ($arch eq "x86_64") { · 169 unmodified lines
170170 $objcopy .= " -O elf32-i386";
171171 $cc .= " -m32";
172172
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+
173184 } else {
174185 die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
175186 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t