#include <linux/time.h>
#include <sys/domain.h>
+#include <sys/util.h>
#include <xtypes/domain.h>
#include <xseg/domain.h>
int (*xseg_snprintf)(char *str, size_t size, const char *format, ...) = snprintf;
-EXPORT_SYMBOL(xseg_snprintf);
char __xseg_errbuf[4096];
-EXPORT_SYMBOL(__xseg_errbuf);
static spinlock_t __lock;
{
(void)printk(KERN_INFO "%s\n", msg);
}
-EXPORT_SYMBOL(__xseg_log);
void *xtypes_malloc(unsigned long size)
{
return;
}
-struct log_ctx {
- void *logfile;
- char *peer_name;
- unsigned int log_level;
-};
-
-int kernel_init_logctx(struct log_ctx *lc, char *peer_name, unsigned int log_level, char *logfile)
+int kernel_init_logctx(struct log_ctx *lc, char *peer_name, enum log_level log_level, char *logfile)
{
lc->peer_name = peer_name;
lc->log_level = log_level;
va_list ap;
struct timeval t;
struct tm broken;
- char timebuf[1024], buffer[4096];
+ char buffer[1500];
char *buf = buffer;
char *type = NULL, *pn = NULL;
return;
}
+void xseg_printtrace(void)
+{
+ dump_stack();
+}
+
module_init(xsegmod_init);
module_exit(xsegmod_exit);