diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2019-04-12 23:22:01 +0900 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-04-12 17:04:27 +0100 |
commit | a823c35ff2eda73046cc1847326071de350fceda (patch) | |
tree | c1e5fa47ee4c105168ad1fbc08529f85e785a110 /drivers/clocksource | |
parent | 691efbedc60d2a7364a90e38882fc762f06f52c4 (diff) | |
download | linux-a823c35ff2eda73046cc1847326071de350fceda.tar.bz2 |
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: Masami Hiramatsu <mhiramat@kernel.org>
[will: tidied up the comment a bit]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/clocksource')
0 files changed, 0 insertions, 0 deletions