summaryrefslogtreecommitdiffstats
path: root/arch/csky/include
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-15 14:04:27 +0100
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 16:17:23 +0100
commitd7950be145c84ca5094c52bc1ad1e7f1893d0f19 (patch)
treec69b59c597f07f36159112ad3afc251feb32455e /arch/csky/include
parentcsky: basic ftrace supported (diff)
downloadlinux-d7950be145c84ca5094c52bc1ad1e7f1893d0f19.tar.xz
linux-d7950be145c84ca5094c52bc1ad1e7f1893d0f19.zip
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')
-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 */