summaryrefslogtreecommitdiffstats
path: root/scripts/recordmcount.pl
diff options
context:
space:
mode:
authorRabin Vincent <rabin@rab.in>2010-08-10 19:52:35 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-09-02 15:28:43 +0100
commit72dc43a9eb123d2742bd413c80dbeab0c588f622 (patch)
treed4a020340a00fc00497aedef1fcd8c6bd8abaad7 /scripts/recordmcount.pl
parent3b6c223b1b97ad60bbb0f4efda57d649414ac2a2 (diff)
downloadop-kernel-dev-72dc43a9eb123d2742bd413c80dbeab0c588f622.zip
op-kernel-dev-72dc43a9eb123d2742bd413c80dbeab0c588f622.tar.gz
ARM: 6319/1: ftrace: add Thumb-2 support to dynamic ftrace
Handle the different nop and call instructions for Thumb-2. Also, we need to adjust the recorded mcount_loc addresses because they have the lsb set. Cc: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> [recordmcount.pl change] Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'scripts/recordmcount.pl')
-rwxr-xr-xscripts/recordmcount.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 022d467..1d7963f 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -270,7 +270,7 @@ if ($arch eq "x86_64") {
} elsif ($arch eq "arm") {
$alignment = 2;
$section_type = '%progbits';
- $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_ARM_(CALL|PC24)" .
+ $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_ARM_(CALL|PC24|THM_CALL)" .
"\\s+(__gnu_mcount_nc|mcount)\$";
} elsif ($arch eq "ia64") {
OpenPOWER on IntegriCloud