ftrace, ia64: Add macro for ftrace_caller

Define FTRACE_ADDR. In IA64, a function pointer isn't a 'unsigned long' but a
'struct {unsigned long ip, unsigned long gp}'.

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>
This commit is contained in:
Shaohua Li
2009-01-09 11:29:42 +08:00
committed by Ingo Molnar
parent 25aac9dc7c
commit f00012074b
2 changed files with 5 additions and 1 deletions

View File

@@ -455,7 +455,7 @@ __ftrace_replace_code(struct dyn_ftrace *rec, int enable)
unsigned long ip, fl;
unsigned long ftrace_addr;
ftrace_addr = (unsigned long)ftrace_caller;
ftrace_addr = (unsigned long)FTRACE_ADDR;
ip = rec->ip;