csky: Add perf callchain support
authorMao Han <han_mao@c-sky.com>
Thu, 21 Feb 2019 13:41:26 +0000 (21:41 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 05:44:57 +0000 (13:44 +0800)
commitcfa4d93b977a1b1129e7207d11b5daecdf0c56c4
tree819c1af5ddde73eb5683c992565f3ed79ae1be64
parent28bb030f93334495ddc64ade0bff18721bf7023d
csky: Add perf callchain support

This patch add support for perf callchain sampling on csky platform.
As fp is used to unwind the stack, the program being sampled and the
C library need to be compiled with -mbacktrace for user callchains,
kernel callchains require CONFIG_STACKTRACE = y.

Changelog:
 - Coding convention with Christoph's advice for riscv's.

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Christoph Hellwig <hch@infradead.org>
arch/csky/kernel/Makefile
arch/csky/kernel/perf_callchain.c [new file with mode: 0644]