csky: Add support for perf registers sampling
authorMao Han <han_mao@c-sky.com>
Mon, 15 Apr 2019 09:17:29 +0000 (17:17 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 05:44:57 +0000 (13:44 +0800)
commitdaac95e70f482e7add3305ee5e38f00dca505268
tree9b33464b7770ef5a5ca52617abca314ee01fb390
parent0eaf50deec8d550164b3cf6a5d68ec1072916f0e
csky: Add support for perf registers sampling

This patch implements the perf registers sampling and validation API
for csky arch. The valid registers and their register ID are defined in
perf_regs.h. Perf tool can backtrace in userspace with unwind library
and the registers/user stack dump support.

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
arch/csky/Kconfig
arch/csky/include/uapi/asm/perf_regs.h [new file with mode: 0644]
arch/csky/kernel/Makefile
arch/csky/kernel/perf_regs.c [new file with mode: 0644]