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 /arch/x86/kernel/i386_ksyms_32.c | |
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 'arch/x86/kernel/i386_ksyms_32.c')
-rw-r--r-- | arch/x86/kernel/i386_ksyms_32.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/kernel/i386_ksyms_32.c b/arch/x86/kernel/i386_ksyms_32.c index deb43785e92..29999dbb754 100644 --- a/arch/x86/kernel/i386_ksyms_32.c +++ b/arch/x86/kernel/i386_ksyms_32.c | |||
@@ -1,7 +1,14 @@ | |||
1 | #include <linux/ftrace.h> | ||
1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
3 | |||
2 | #include <asm/checksum.h> | 4 | #include <asm/checksum.h> |
3 | #include <asm/desc.h> | ||
4 | #include <asm/pgtable.h> | 5 | #include <asm/pgtable.h> |
6 | #include <asm/desc.h> | ||
7 | |||
8 | #ifdef CONFIG_FTRACE | ||
9 | /* mcount is defined in assembly */ | ||
10 | EXPORT_SYMBOL(mcount); | ||
11 | #endif | ||
5 | 12 | ||
6 | /* Networking helper routines. */ | 13 | /* Networking helper routines. */ |
7 | EXPORT_SYMBOL(csum_partial_copy_generic); | 14 | EXPORT_SYMBOL(csum_partial_copy_generic); |