summaryrefslogtreecommitdiff
path: root/arch/csky/include/asm
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-15 16:04:27 +0300
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 18:17:23 +0300
commitd7950be145c84ca5094c52bc1ad1e7f1893d0f19 (patch)
treec69b59c597f07f36159112ad3afc251feb32455e /arch/csky/include/asm
parent230c77a5e92a29bf21e98ee35e22b0537f61c55b (diff)
downloadlinux-d7950be145c84ca5094c52bc1ad1e7f1893d0f19.tar.xz
csky: ftrace call graph supported.
With csky-gcc -pg -mbacktrace, ftrace call graph supported. Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'arch/csky/include/asm')
-rw-r--r--arch/csky/include/asm/ftrace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/csky/include/asm/ftrace.h b/arch/csky/include/asm/ftrace.h
index 1d22a1787b8b..7547c45312a8 100644
--- a/arch/csky/include/asm/ftrace.h
+++ b/arch/csky/include/asm/ftrace.h
@@ -4,6 +4,10 @@
#ifndef __ASM_CSKY_FTRACE_H
#define __ASM_CSKY_FTRACE_H
-extern void _mcount(unsigned long from_pc);
+#define MCOUNT_INSN_SIZE 4
+
+#define HAVE_FUNCTION_GRAPH_FP_TEST
+
+#define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
#endif /* __ASM_CSKY_FTRACE_H */