aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/Kconfig.x86
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2009-06-10 17:07:53 -0400
committerMatt Fleming <matt@console-pimps.org>2009-06-11 14:00:58 -0400
commit9e28c46b7dd116a607ffb054c5545c468c77d779 (patch)
tree348ea5654f1eb17ecd8b0e3256615e96fb3c6dc9 /arch/um/Kconfig.x86
parent7780b6a2990e2fbb697bb900e01ca7361943c7da (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/um/Kconfig.x86')
0 files changed, 0 insertions, 0 deletions