[ARM] 5421/1: ftrace: fix crash due to tracing of __naked functions
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 12 Mar 2009 17:03:16 +0000 (18:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 Mar 2009 21:33:03 +0000 (21:33 +0000)
This is a fix for the following crash observed in 2.6.29-rc3:
http://lkml.org/lkml/2009/1/29/150

On ARM it doesn't make sense to trace a naked function because then
mcount is called without stack and frame pointer being set up and there
is no chance to restore the lr register to the value before mcount was
called.

Reported-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Tested-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Cc: Abhishek Sagar <sagar.abhishek@gmail.com>
Cc: Steven Rostedt <rostedt@home.goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found