]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace, ia64: Add recordmcount for ia64
authorShaohua Li <shaohua.li@intel.com>
Fri, 9 Jan 2009 03:29:44 +0000 (11:29 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 14 Jan 2009 11:11:22 +0000 (12:11 +0100)
Add recordmcount for ia64.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
scripts/recordmcount.pl

index 070042b4ccd5075a89a96f41d615da41bb060220..2ded5c8e6b853da56205fa2ca625375bc28ff6b3 100755 (executable)
@@ -206,6 +206,13 @@ if ($arch eq "x86_64") {
     $alignment = 2;
     $section_type = '%progbits';
 
+} elsif ($arch eq "ia64") {
+    $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s_mcount\$";
+    $type = "data8";
+
+    if ($is_module eq "0") {
+        $cc .= " -mconstant-gp";
+    }
 } else {
     die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
 }