From: Michal Simek Date: Mon, 7 May 2012 12:21:02 +0000 (+0200) Subject: microblaze: ftrace: Pass the first calling instruction for dynamic ftrace X-Git-Tag: v3.5-rc1~61^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d65987a88dc8b182ef933edf93c23cf4233dd8d5;p=pandora-kernel.git microblaze: ftrace: Pass the first calling instruction for dynamic ftrace Selftest for dynamic ftrace requres to pass address of the first calling instruction because hash function is calculated from it. ftrace_update_ftrace_func setups pointer to function which is called in _mcount function. trace_selftest is not aware about instruction size (for microblaze 8 - imm and addik) and that's why we have to pass in r5 address of imm not addik which is in r15.12 For more info look at ftrace_ops_list_func/ftrace.c. Signed-off-by: Michal Simek --- Reading git-diff-tree failed