diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-02-18 13:27:39 +0100 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-03-08 13:55:14 +0100 |
commit | 89a3927a775c0a7212e2e3c4e2d42cd48895bee0 (patch) | |
tree | 18dc3f0f5c95f004f7613882a511eb7e19b32ba6 /arch/csky/include | |
parent | csky: Add support for restartable sequence (diff) | |
download | linux-89a3927a775c0a7212e2e3c4e2d42cd48895bee0.tar.xz linux-89a3927a775c0a7212e2e3c4e2d42cd48895bee0.zip |
csky: Implement ftrace with regs
This patch implements FTRACE_WITH_REGS for csky, which allows a traced
function's arguments (and some other registers) to be captured into a
struct pt_regs, allowing these to be inspected and/or modified.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/include')
-rw-r--r-- | arch/csky/include/asm/ftrace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/csky/include/asm/ftrace.h b/arch/csky/include/asm/ftrace.h index ba35d93ecda2..fae72b0b1374 100644 --- a/arch/csky/include/asm/ftrace.h +++ b/arch/csky/include/asm/ftrace.h @@ -10,6 +10,8 @@ #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR +#define ARCH_SUPPORTS_FTRACE_OPS 1 + #define MCOUNT_ADDR ((unsigned long)_mcount) #ifndef __ASSEMBLY__ |