aboutsummaryrefslogtreecommitdiff
path: root/scripts/recordmcount.pl
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2009-01-09 11:29:44 +0800
committerIngo Molnar <mingo@elte.hu>2009-01-14 12:11:22 +0100
commit418071eb6adbfd3980b2f57f7df8e03921e3f1d7 (patch)
tree9b58730a3e6f6a4053f41d39aa954acafea4a5be /scripts/recordmcount.pl
parentf00012074b1a1a67d9c8603617bbbab267347ca6 (diff)
downloadlinux-2.6.34-ux500-418071eb6adbfd3980b2f57f7df8e03921e3f1d7.tar.gz
ftrace, ia64: Add recordmcount for ia64
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>
Diffstat (limited to 'scripts/recordmcount.pl')
-rwxr-xr-xscripts/recordmcount.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 070042b4ccd..2ded5c8e6b8 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -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";
}