Re: [v3] powerpc: Add support for function error injection

2018-10-22 Thread Michael Ellerman
On Thu, 2018-06-07 at 09:52:02 UTC, "Naveen N. Rao" wrote: > We implement regs_set_return_value() and override_function_with_return() > for this purpose. > > On powerpc, a return from a function (blr) just branches to the location > contained in the link register. So, we can just update pt_regs ra

Re: [PATCH v3] powerpc: Add support for function error injection

2018-06-07 Thread Samuel Mendoza-Jonas
On Thu, 2018-06-07 at 15:22 +0530, Naveen N. Rao wrote: > We implement regs_set_return_value() and override_function_with_return() > for this purpose. > > On powerpc, a return from a function (blr) just branches to the location > contained in the link register. So, we can just update pt_regs rathe

[PATCH v3] powerpc: Add support for function error injection

2018-06-07 Thread Naveen N. Rao
We implement regs_set_return_value() and override_function_with_return() for this purpose. On powerpc, a return from a function (blr) just branches to the location contained in the link register. So, we can just update pt_regs rather than redirecting execution to a dummy function that returns. Si