diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-02-18 20:27:39 +0800 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-03-08 20:55:14 +0800 |
commit | 89a3927a775c0a7212e2e3c4e2d42cd48895bee0 (patch) | |
tree | 18dc3f0f5c95f004f7613882a511eb7e19b32ba6 /arch/csky/kernel/asm-offsets.c | |
parent | 9866d141a0977ace974400bf1f793dfc163409ce (diff) | |
download | linux-89a3927a775c0a7212e2e3c4e2d42cd48895bee0.tar.gz |
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/kernel/asm-offsets.c')
-rw-r--r-- | arch/csky/kernel/asm-offsets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/csky/kernel/asm-offsets.c b/arch/csky/kernel/asm-offsets.c index 9b48b1b1a61b..f8be348df9e4 100644 --- a/arch/csky/kernel/asm-offsets.c +++ b/arch/csky/kernel/asm-offsets.c @@ -72,6 +72,7 @@ int main(void) DEFINE(PT_RLO, offsetof(struct pt_regs, rlo)); #endif DEFINE(PT_USP, offsetof(struct pt_regs, usp)); + DEFINE(PT_FRAME_SIZE, sizeof(struct pt_regs)); /* offsets into the irq_cpustat_t struct */ DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, |