csky: basic ftrace supported
authorGuo Ren <ren_guo@c-sky.com>
Sun, 9 Dec 2018 06:29:59 +0000 (14:29 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 31 Dec 2018 15:16:46 +0000 (23:16 +0800)
commit230c77a5e92a29bf21e98ee35e22b0537f61c55b
tree78aa6ee2843c765edd87b1a9a824f50558c0888a
parent17a68777bc883c8044c8b2d40aa112ff4e8a4fb1
csky: basic ftrace supported

When gcc with -pg, it'll add _mcount stub in every function. We need
implement the _mcount in kernel and ftrace depends on stackstrace.

To do: call-graph, dynamic ftrace

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
arch/csky/Kconfig
arch/csky/abiv2/Makefile
arch/csky/abiv2/mcount.S [new file with mode: 0644]
arch/csky/include/asm/ftrace.h [new file with mode: 0644]
arch/csky/kernel/Makefile
arch/csky/kernel/ftrace.c [new file with mode: 0644]