Add recordmcount for ia64
PATCH 4/6 Add recordmcount for ia64
Add recordmcount for ia64.
Signed-off-by Shaohua Li <[email protected]>
--- scripts/recordmcount.pl | 7 +++++++ 1 file changed, 7 insertions(+)
Index: linux/scripts/recordmcount.pl
=================================--- linux.orig/scripts/recordmcount.pl 2009-01-09 09:53:56.000000000 +0800
+++ linux/scripts/recordmcount.pl 2009-01-09 09:55:55.000000000 +0800
@@ -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";}