arm64: Add ftrace support
[linux-2.6-block.git] / arch / arm64 / include / asm / ftrace.h
1 /*
2  * arch/arm64/include/asm/ftrace.h
3  *
4  * Copyright (C) 2013 Linaro Limited
5  * Author: AKASHI Takahiro <takahiro.akashi@linaro.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11 #ifndef __ASM_FTRACE_H
12 #define __ASM_FTRACE_H
13
14 #include <asm/insn.h>
15
16 #define MCOUNT_ADDR             ((unsigned long)_mcount)
17 #define MCOUNT_INSN_SIZE        AARCH64_INSN_SIZE
18
19 #ifndef __ASSEMBLY__
20 extern void _mcount(unsigned long);
21 #endif /* __ASSEMBLY__ */
22
23 #endif /* __ASM_FTRACE_H */