summaryrefslogtreecommitdiffstats
path: root/scripts/recordmcount.pl
diff options
context:
space:
mode:
authorTony Lu <zlu@tilera.com>2013-08-09 19:26:09 +0200
committerChris Metcalf <cmetcalf@tilera.com>2013-08-30 16:20:13 +0200
commita61fd5e3662d576998d72f80376f23b6ef083d6e (patch)
tree396778bb72c002fb3cca77c9430ec3fb327daa1e /scripts/recordmcount.pl
parenttile: provide traceability for hypervisor calls (diff)
downloadlinux-a61fd5e3662d576998d72f80376f23b6ef083d6e.tar.xz
linux-a61fd5e3662d576998d72f80376f23b6ef083d6e.zip
tile: support ftrace on tilegx
This commit adds support for static ftrace, graph function support, and dynamic tracer support. Signed-off-by: Tony Lu <zlu@tilera.com> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'scripts/recordmcount.pl')
-rwxr-xr-xscripts/recordmcount.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 858966ab019c..a674fd5507c1 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -364,6 +364,10 @@ if ($arch eq "x86_64") {
} elsif ($arch eq "blackfin") {
$mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$";
$mcount_adjust = -4;
+} elsif ($arch eq "tilegx") {
+ $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$";
+ $type = ".quad";
+ $alignment = 8;
} else {
die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
}