]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Do not suppress instruction emulation if a single run failed
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 22 Sep 2017 09:10:44 +0000 (14:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 12:42:16 +0000 (23:42 +1100)
commit54f4712993915f0e8e55e13d8a0f313163171308
tree0cbbc65e5d44d44bcd27504a84cffa49d1ebf657
parent67bef58358c3ee1dbfd1a342d5b416a6720e06ca
powerpc/kprobes: Do not suppress instruction emulation if a single run failed

Currently, we disable instruction emulation if emulate_step() fails for
any reason. However, such failures could be transient and specific to a
particular run. Instead, only disable instruction emulation if we have
never been able to emulate this. If we had emulated this instruction
successfully at least once, then we single step only this probe hit and
continue to try emulating the instruction in subsequent probe hits.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/kprobes.c