diff options
author | Shaohua Li <shaohua.li@intel.com> | 2009-01-09 03:29:42 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-14 11:11:18 (GMT) |
commit | f00012074b1a1a67d9c8603617bbbab267347ca6 (patch) | |
tree | 7a5ec4d30a513914277ccaa607ff88ecf294f84a /kernel/trace/ftrace.c | |
parent | 25aac9dc7c8c73798c1be8aa36141f980d32579e (diff) | |
download | linux-fsl-qoriq-f00012074b1a1a67d9c8603617bbbab267347ca6.tar.xz |
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>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 76bb884..9f53610 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -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; |