Re: powerpc/kprobes: Update optprobes to use emulate_update_regs()

2017-09-20 Thread Michael Ellerman
On Fri, 2017-09-15 at 10:08:21 UTC, "Naveen N. Rao" wrote: > Optprobes depended on an updated regs->nip from analyse_instr() to > identify the location to branch back from the optprobes trampoline. > However, since commit 3cdfcbfd32b9d ("powerpc: Change analyse_instr so > it doesn't modify

[PATCH] powerpc/kprobes: Update optprobes to use emulate_update_regs()

2017-09-15 Thread Naveen N. Rao
Optprobes depended on an updated regs->nip from analyse_instr() to identify the location to branch back from the optprobes trampoline. However, since commit 3cdfcbfd32b9d ("powerpc: Change analyse_instr so it doesn't modify *regs"), analyse_instr() doesn't update the registers anymore. Due to