diff options
author | Shaohua Li <shaohua.li@intel.com> | 2009-01-09 06:29:46 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-14 14:11:26 +0300 |
commit | d3e75ff14bc1453c4762428395aac9953a023efc (patch) | |
tree | b25ec02c30da77257ab02b232b932308260e83ba /arch/ia64/include/asm/ftrace.h | |
parent | 418071eb6adbfd3980b2f57f7df8e03921e3f1d7 (diff) | |
download | linux-d3e75ff14bc1453c4762428395aac9953a023efc.tar.xz |
ftrace, ia64: IA64 static ftrace support
IA64 ftrace suppport. In IA64, below code will be added in each function
if -pg is enabled.
alloc r40=ar.pfs,12,8,0
mov r43=r0;;
mov r42=b0
mov r41=r1
nop.i 0x0
br.call.sptk.many b0 = _mcount;;
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/ia64/include/asm/ftrace.h')
-rw-r--r-- | arch/ia64/include/asm/ftrace.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/ftrace.h b/arch/ia64/include/asm/ftrace.h new file mode 100644 index 000000000000..48694b3ba5a8 --- /dev/null +++ b/arch/ia64/include/asm/ftrace.h @@ -0,0 +1,15 @@ +#ifndef _ASM_IA64_FTRACE_H +#define _ASM_IA64_FTRACE_H + +#ifdef CONFIG_FUNCTION_TRACER +#define MCOUNT_INSN_SIZE 32 /* sizeof mcount call */ + +#ifndef __ASSEMBLY__ +extern void _mcount(unsigned long pfs, unsigned long r1, unsigned long b0, unsigned long r0); +#define mcount _mcount + +#endif + +#endif /* CONFIG_FUNCTION_TRACER */ + +#endif /* _ASM_IA64_FTRACE_H */ |