Skip to content
Commit a823c35f authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Will Deacon
Browse files

arm64: ptrace: Add function argument access API



Add regs_get_argument() which returns N th argument of the function
call. On arm64, it supports up to 8th argument.
Note that this chooses most probably assignment, in some case
it can be incorrect (e.g. passing data structure or floating
point etc.)

This enables ftrace kprobe events to access kernel function
arguments via $argN syntax.

Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
[will: tidied up the comment a bit]
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 691efbed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment