ARM: 6318/1: ftrace: fix and update dynamic ftrace
authorRabin Vincent <rabin@rab.in>
Tue, 10 Aug 2010 18:43:28 +0000 (19:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Sep 2010 14:27:40 +0000 (15:27 +0100)
commit3b6c223b1b97ad60bbb0f4efda57d649414ac2a2
tree291dcb285e8cb64415a82ed1c65dc9681921a257
parentf9810a82536e0c730c57844753e6c08cc7f77881
ARM: 6318/1: ftrace: fix and update dynamic ftrace

This adds mcount recording and updates dynamic ftrace for ARM to work
with the new ftrace dyamic tracing implementation.  It also adds support
for the mcount format used by newer ARM compilers.

With dynamic tracing, mcount() is implemented as a nop.  Callsites are
patched on startup with nops, and dynamically patched to call to the
ftrace_caller() routine as needed.

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>
arch/arm/include/asm/ftrace.h
arch/arm/kernel/entry-common.S
arch/arm/kernel/ftrace.c
scripts/recordmcount.pl