aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-05-12 15:20:50 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:56:31 -0400
commitcaf8cdebfb6c1cff50ea8077f1a07c2333d6d1fd (patch)
tree848a3350351c7fbe3240bd600237c816ade38625 /kernel/trace/ftrace.c
parent9ff9cdb2d3b0971f89e899b3420aadd91bddc215 (diff)
ftrace: remove address of function names
PowerPC is very fragile when it comes to use of function names and function addresses. ftrace needs to either use all function addresses or function names (i.e. my_func as suppose to &my_func). This patch chooses to use the names and not the addresses, and makes ftrace consistent. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 425b1fec3d83..57350cbd1f61 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -326,8 +326,8 @@ ftrace_record_ip(unsigned long ip)
326 preempt_enable_notrace(); 326 preempt_enable_notrace();
327} 327}
328 328
329#define FTRACE_ADDR ((long)(&ftrace_caller)) 329#define FTRACE_ADDR ((long)(ftrace_caller))
330#define MCOUNT_ADDR ((long)(&mcount)) 330#define MCOUNT_ADDR ((long)(mcount))
331 331
332static void notrace 332static void notrace
333__ftrace_replace_code(struct dyn_ftrace *rec, 333__ftrace_replace_code(struct dyn_ftrace *rec,