From: Steven J. Magnani Date: Fri, 2 Apr 2010 18:29:39 +0000 (-0500) Subject: microblaze: Fix ftrace_update_ftrace_func panic X-Git-Tag: v2.6.34-rc4~28^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2bf98e6fc2612cbd2fc40f75a1e2c5d60262331;p=pandora-kernel.git microblaze: Fix ftrace_update_ftrace_func panic The Microblaze dynamic ftrace code assumes a call ordering that is not met in all scenarios. Specifically, executing a command similar to: echo 105 > /sys/kernel/debug/tracing/set_ftrace_pid before any other tracing-related commands results in a kernel panic: BUG: failure at arch/microblaze/kernel/ftrace.c:198/ftrace_update_ftrace_func()! Recoding ftrace_update_ftrace_func() to use &ftrace_caller directly eliminates the need to capture its address elsewhere (and thus rely on a particular call sequence). Signed-off-by: Steven J. Magnani Signed-off-by: Michal Simek --- Reading git-diff-tree failed