Mingo did a teency mistake in his handy stack-profiling patch (which has been verified to work fine

Greg Alexander (galexand@sietch.bloomington.in.us)
Sat, 21 Jun 1997 13:29:23 -0500 (EST)


Here's the fix...he just forgot to export his mcount function, which is
called from within the modules, too. I'm not totally certain this will
work, as I've never fiddled with this stuff before, but I'm rather certain
this is how it's supposed to work. have fun. Apply this after Mingo's
patch:

--- ksyms.c.orig Sat Jun 21 13:27:07 1997
+++ ksyms.c Sat Jun 21 13:24:03 1997
@@ -64,6 +64,7 @@
#include <linux/smp.h>
#endif

+extern void mcount(void);
extern char *get_options(char *str, int *ints);
extern void set_device_ro(kdev_t dev,int flag);
extern struct file_operations * get_blkfops(unsigned int);
@@ -101,6 +102,10 @@
#endif
#ifndef wp_works_ok__is_a_macro
X(wp_works_ok),
+#endif
+
+#ifdef CONFIG_DEBUG_KSTACK
+ X(mcount),
#endif

#ifdef CONFIG_PCI