diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-06-10 22:07:53 +0100 |
---|---|---|
committer | Matt Fleming <matt@console-pimps.org> | 2009-06-11 19:00:58 +0100 |
commit | 9e28c46b7dd116a607ffb054c5545c468c77d779 (patch) | |
tree | 348ea5654f1eb17ecd8b0e3256615e96fb3c6dc9 /arch/sh/boards | |
parent | 7780b6a2990e2fbb697bb900e01ca7361943c7da (diff) |
sh: Fix dynamic ftrace's NOP action.
Ftrace on sh handles nop'ing out trace function calls differently than
other architectures. Instead of inserting NOP instructions in place of
the call to the function tracer we branch over the call instructions
and continue executing the main body of the function.
This patch fixes a bug in the implementation of ftrace_modify_code()
where we check that the old value of the code we're about to replace
is an expected one. In the ftrace_make_call() code path
ftrace_modify_code() was comparing the old instruction value with NOP
instructions. The compare was failing because we never actually insert
NOP instructions. It makes sense to just get rid of the NOP
instructions in ftrace_nop and compare the old code with the address
of the function body if we're expecting ftrace to have nop'd out the
function trace call.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Diffstat (limited to 'arch/sh/boards')
0 files changed, 0 insertions, 0 deletions