summaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2019-04-12 23:22:01 +0900
committerWill Deacon <will.deacon@arm.com>2019-04-12 17:04:27 +0100
commita823c35ff2eda73046cc1847326071de350fceda (patch)
treec1e5fa47ee4c105168ad1fbc08529f85e785a110 /arch/arm64/Kconfig
parent691efbedc60d2a7364a90e38882fc762f06f52c4 (diff)
downloadlinux-a823c35ff2eda73046cc1847326071de350fceda.tar.gz
linux-a823c35ff2eda73046cc1847326071de350fceda.tar.bz2
linux-a823c35ff2eda73046cc1847326071de350fceda.zip
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 'arch/arm64/Kconfig')
-rw-r--r--arch/arm64/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 555af5035592..c383625ec02c 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -148,6 +148,7 @@ config ARM64
select HAVE_PERF_REGS
select HAVE_PERF_USER_STACK_DUMP
select HAVE_REGS_AND_STACK_ACCESS_API
+ select HAVE_FUNCTION_ARG_ACCESS_API
select HAVE_RCU_TABLE_FREE
select HAVE_RCU_TABLE_INVALIDATE
select HAVE_RSEQ