diff options
author | Guo Ren <ren_guo@c-sky.com> | 2018-12-09 07:29:59 +0100 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2018-12-31 16:16:46 +0100 |
commit | 230c77a5e92a29bf21e98ee35e22b0537f61c55b (patch) | |
tree | 78aa6ee2843c765edd87b1a9a824f50558c0888a /arch/csky/include | |
parent | csky: remove unused members in processor.h (diff) | |
download | linux-230c77a5e92a29bf21e98ee35e22b0537f61c55b.tar.xz linux-230c77a5e92a29bf21e98ee35e22b0537f61c55b.zip |
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>
Diffstat (limited to 'arch/csky/include')
-rw-r--r-- | arch/csky/include/asm/ftrace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/csky/include/asm/ftrace.h b/arch/csky/include/asm/ftrace.h new file mode 100644 index 000000000000..1d22a1787b8b --- /dev/null +++ b/arch/csky/include/asm/ftrace.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. + +#ifndef __ASM_CSKY_FTRACE_H +#define __ASM_CSKY_FTRACE_H + +extern void _mcount(unsigned long from_pc); + +#endif /* __ASM_CSKY_FTRACE_H */ |