Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121167
b: refs/heads/master
c: 0da85c0
h: refs/heads/master
i:
  121165: 49cb660
  121163: ebdd7db
  121159: 0e8ecc4
  121151: 670c021
v: v3
  • Loading branch information
Matt Fleming authored and Ingo Molnar committed Nov 23, 2008
1 parent fc46021 commit 0a4de6c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d926f2756392c6909f60e0c9fe2a09d5462e376
refs/heads/master: 0da85c09b44bfea07e63ed5324aabc7cfc8a889a
2 changes: 1 addition & 1 deletion trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ int do_one_initcall(initcall_t fn)
disable_boot_trace();
rettime = ktime_get();
delta = ktime_sub(rettime, calltime);
ret.duration = (unsigned long long) ktime_to_ns(delta) >> 10;
ret.duration = (unsigned long long) delta.tv64 >> 10;
trace_boot_ret(&ret, fn);
printk("initcall %pF returned %d after %Ld usecs\n", fn,
ret.result, ret.duration);
Expand Down
11 changes: 11 additions & 0 deletions trunk/scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@
$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";
}
Expand Down

0 comments on commit 0a4de6c

Please sign in to comment.