summaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorMasami Hiramatsu2019-04-12 16:22:01 +0200
committerWill Deacon2019-04-12 18:04:27 +0200
commita823c35ff2eda73046cc1847326071de350fceda (patch)
treec1e5fa47ee4c105168ad1fbc08529f85e785a110 /arch/arm64/Kconfig
parentarm64: vdso: use $(LD) instead of $(CC) to link VDSO (diff)
downloadkernel-qcow2-linux-a823c35ff2eda73046cc1847326071de350fceda.tar.gz
kernel-qcow2-linux-a823c35ff2eda73046cc1847326071de350fceda.tar.xz
kernel-qcow2-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