diff options
author | Mao Han <han_mao@c-sky.com> | 2019-04-10 04:27:10 +0200 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2019-04-22 07:44:57 +0200 |
commit | b4bf274198bd415e66af0b54a2e181c59fd43ba4 (patch) | |
tree | f517e4c2a1d0b8636e24089188a1fcf0826cf5f1 /arch/csky/abiv2/inc | |
parent | csky: Fixup wrong update_mmu_cache implementation (diff) | |
download | linux-b4bf274198bd415e66af0b54a2e181c59fd43ba4.tar.xz linux-b4bf274198bd415e66af0b54a2e181c59fd43ba4.zip |
csky: Add perf_arch_fetch_caller_regs support
In trace events as tracepoints context are not able to
be retrieve with task_pt_regs. Without arch caller regs
support the pt_regs context will be all zero, perf can
not parsing the callchain and resolving the symbols
correctly, some time will even get into deadlock
while handling the page fault, eg:
perf kmem —page record ls
Changelog
- Add test case cmd in comment
- Use regs_fp(regs) which is defined in abi/regdef.h
Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Diffstat (limited to 'arch/csky/abiv2/inc')
-rw-r--r-- | arch/csky/abiv2/inc/abi/regdef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/csky/abiv2/inc/abi/regdef.h b/arch/csky/abiv2/inc/abi/regdef.h index 77cb1788b04c..d7328bbc1ce7 100644 --- a/arch/csky/abiv2/inc/abi/regdef.h +++ b/arch/csky/abiv2/inc/abi/regdef.h @@ -6,6 +6,7 @@ #define syscallid r7 #define regs_syscallid(regs) regs->regs[3] +#define regs_fp(regs) regs->regs[4] /* * PSR format: |