make mt-sosd use the newly added dispatch reason
[archipelago] / xseg / sys / kernel / xsegmod.c
index 2c0cabb..2e6832b 100644 (file)
 #include <xseg/domain.h>
 
 int (*xseg_snprintf)(char *str, size_t size, const char *format, ...) = snprintf;
 #include <xseg/domain.h>
 
 int (*xseg_snprintf)(char *str, size_t size, const char *format, ...) = snprintf;
-EXPORT_SYMBOL(xseg_snprintf);
 
 char __xseg_errbuf[4096];
 
 char __xseg_errbuf[4096];
-EXPORT_SYMBOL(__xseg_errbuf);
 
 static spinlock_t __lock;
 
 
 static spinlock_t __lock;
 
@@ -46,7 +44,6 @@ void __xseg_log(const char *msg)
 {
        (void)printk(KERN_INFO "%s\n", msg);
 }
 {
        (void)printk(KERN_INFO "%s\n", msg);
 }
-EXPORT_SYMBOL(__xseg_log);
 
 void *xtypes_malloc(unsigned long size)
 {
 
 void *xtypes_malloc(unsigned long size)
 {
@@ -83,14 +80,13 @@ int kernel_init_logctx(struct log_ctx *lc, char *peer_name, enum log_level log_l
        return 0;
 }
 int (*init_logctx)(struct log_ctx *lc, char *peer_name, enum log_level log_level, char *logfile) = kernel_init_logctx;
        return 0;
 }
 int (*init_logctx)(struct log_ctx *lc, char *peer_name, enum log_level log_level, char *logfile) = kernel_init_logctx;
-EXPORT_SYMBOL(init_logctx);
 
 void __xseg_log2(struct log_ctx *lc, unsigned int level, char *fmt, ...)
 {
        va_list ap;
        struct timeval t;
        struct tm broken;
 
 void __xseg_log2(struct log_ctx *lc, unsigned int level, char *fmt, ...)
 {
        va_list ap;
        struct timeval t;
        struct tm broken;
-       char buffer[4096];
+       char buffer[1500];
        char *buf = buffer;
        char *type = NULL, *pn = NULL;
 
        char *buf = buffer;
        char *type = NULL, *pn = NULL;
 
@@ -120,7 +116,11 @@ void __xseg_log2(struct log_ctx *lc, unsigned int level, char *fmt, ...)
 
        return;
 }
 
        return;
 }
-EXPORT_SYMBOL(__xseg_log2);
+
+void xseg_printtrace(void)
+{
+       dump_stack();
+}
 
 module_init(xsegmod_init);
 module_exit(xsegmod_exit);
 
 module_init(xsegmod_init);
 module_exit(xsegmod_exit);