diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-14 02:10:31 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 16:36:24 -0400 |
commit | 37135677e653537ffc6e7def679443272a1c03c3 (patch) | |
tree | 13ca182dfe446cefc60f8cf5e91b59a43b3170f7 /kernel/trace | |
parent | d05f5f9906740474eb768823004ffcd775b12ca6 (diff) |
ftrace: fix mcount export bug
David S. Miller noticed the following bug: the -pg instrumentation
function callback is named differently on each platform. On x86 it
is mcount, on sparc it is _mcount. So the export does not make sense
in kernel/trace/ftrace.c - move it to x86.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/ftrace.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 07b2a14943f8..a3e47f43f8a0 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -50,9 +50,6 @@ static struct ftrace_ops ftrace_list_end __read_mostly = | |||
50 | static struct ftrace_ops *ftrace_list __read_mostly = &ftrace_list_end; | 50 | static struct ftrace_ops *ftrace_list __read_mostly = &ftrace_list_end; |
51 | ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub; | 51 | ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub; |
52 | 52 | ||
53 | /* mcount is defined per arch in assembly */ | ||
54 | EXPORT_SYMBOL(mcount); | ||
55 | |||
56 | void ftrace_list_func(unsigned long ip, unsigned long parent_ip) | 53 | void ftrace_list_func(unsigned long ip, unsigned long parent_ip) |
57 | { | 54 | { |
58 | struct ftrace_ops *op = ftrace_list; | 55 | struct ftrace_ops *op = ftrace_list; |