mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[POWERPC] kprobes: Eliminate sstep exception if instruction can be emulated
For cases when probes are placed on instructions that can be emulated, don't take the single-step exception. Signed-off-by: Ananth N Mavinakayanahalli <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
6888199f7f
commit
e6349a958b
2 changed files with 40 additions and 1 deletions
|
|
@ -87,6 +87,11 @@ extern void arch_remove_kprobe(struct kprobe *p);
|
|||
struct arch_specific_insn {
|
||||
/* copy of original instruction */
|
||||
kprobe_opcode_t *insn;
|
||||
/*
|
||||
* Set in kprobes code, initially to 0. If the instruction can be
|
||||
* eumulated, this is set to 1, if not, to -1.
|
||||
*/
|
||||
int boostable;
|
||||
};
|
||||
|
||||
struct prev_kprobe {
|
||||
|
|
|
|||
Loading…
Reference in a new issue