csky: Add perf_arch_fetch_caller_regs support
authorMao Han <han_mao@c-sky.com>
Wed, 10 Apr 2019 02:27:10 +0000 (10:27 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 05:44:57 +0000 (13:44 +0800)
commitb4bf274198bd415e66af0b54a2e181c59fd43ba4
treef517e4c2a1d0b8636e24089188a1fcf0826cf5f1
parent981bbf274b64496fd4376b44120d47dae4ca94e8
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>
arch/csky/abiv1/inc/abi/regdef.h
arch/csky/abiv2/inc/abi/regdef.h
arch/csky/include/asm/perf_event.h