Skip to content
Commit 42d038c4 authored by Leo Yan's avatar Leo Yan Committed by Will Deacon
Browse files

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: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 45880f7b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment