arm64: Add support for function error injection
Inspired by the commit 7cd01b08 ("powerpc: Add support for function error injection"), this patch supports function error injection for Arm64. This patch mainly support two functions: one is regs_set_return_value() which is used to overwrite the return value; the another function is override_function_with_return() which is to override the probed function returning and jump to its caller. Reviewed-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NLeo Yan <leo.yan@linaro.org> Signed-off-by: NWill Deacon <will@kernel.org>
Showing
arch/arm64/lib/error-inject.c
0 → 100644
想要评论请 注册 或 登录