diff options
author | Rabin Vincent <rabin@rab.in> | 2010-08-10 14:52:35 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-09-02 10:28:43 -0400 |
commit | 72dc43a9eb123d2742bd413c80dbeab0c588f622 (patch) | |
tree | d4a020340a00fc00497aedef1fcd8c6bd8abaad7 /scripts | |
parent | 3b6c223b1b97ad60bbb0f4efda57d649414ac2a2 (diff) |
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')
-rwxr-xr-x | scripts/recordmcount.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index 022d4679b1b3..1d7963f4ee79 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
@@ -270,7 +270,7 @@ if ($arch eq "x86_64") { | |||
270 | } elsif ($arch eq "arm") { | 270 | } elsif ($arch eq "arm") { |
271 | $alignment = 2; | 271 | $alignment = 2; |
272 | $section_type = '%progbits'; | 272 | $section_type = '%progbits'; |
273 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_ARM_(CALL|PC24)" . | 273 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_ARM_(CALL|PC24|THM_CALL)" . |
274 | "\\s+(__gnu_mcount_nc|mcount)\$"; | 274 | "\\s+(__gnu_mcount_nc|mcount)\$"; |
275 | 275 | ||
276 | } elsif ($arch eq "ia64") { | 276 | } elsif ($arch eq "ia64") { |