#include "kernelcompat.h"
#include "kref.h"
-#include "list.h"
#define EVENTS_PER_CHANNEL 65536
//ust// #include <linux/seq_file.h>
//ust// #include <linux/slab.h>
#include "kernelcompat.h"
-#include "list.h"
+//#include "list.h"
#include "tracer.h"
#include "localerr.h"
//ust// #include <linux/user_marker.h>
//ust// #include <linux/ltt-tracer.h>
-#include "marker.h"
+#define _LGPL_SOURCE
+#include <urcu.h>
+
#include "kernelcompat.h"
+
+#include "marker.h"
#include "usterr.h"
#include "channels.h"
#include "tracercore.h"
#include "tracer.h"
-#include "urcu.h"
extern struct marker __start___markers[] __attribute__((visibility("hidden")));
extern struct marker __stop___markers[] __attribute__((visibility("hidden")));
//ust// #include <linux/ltt-channels.h>
#include "kernelcompat.h"
#include "compiler.h"
-#include "list.h"
+#include <kcompat/list.h>
//ust// struct module;
//ust// struct task_struct;
#include <sys/mman.h>
#include <sys/ipc.h>
#include <sys/shm.h>
-#include "list.h"
+//#include "list.h"
#include "relay.h"
#include "channels.h"
#include "kref.h"
//ust// #include <linux/mm.h>
//ust// #include <linux/ltt-core.h>
#include "kref.h"
-#include "list.h"
+//#include "list.h"
#include "channels.h"
/* Needs a _much_ better name... */
//ust// #include <linux/ltt-tracer.h>
#include <string.h>
#include <stdint.h>
+
#include "kernelcompat.h"
+#define _LGPL_SOURCE
+#include <urcu.h>
+
#include "relay.h"
#include "tracer.h"
-#include "list.h"
+//#include "list.h"
#include "usterr.h"
-#include "urcu.h"
enum ltt_type {
LTT_TYPE_SIGNED_INT,
close(bc->fd_producer);
- __list_del(bc->list.prev, bc->list.next);
+ list_del(&bc->list);
result = ustcomm_send_reply(&bc->server, "END", &bc->src);
if(result < 0) {
}
free(reply);
- __list_del(bc->list.prev, bc->list.next);
+ list_del(&bc->list);
}
}
#include "kernelcompat.h"
#include "tracepoint.h"
#include "usterr.h"
-#include "list.h"
-#include "urcu.h"
+//#include "list.h"
+
+#define _LGPL_SOURCE
+#include <urcu.h>
//extern struct tracepoint __start___tracepoints[] __attribute__((visibility("hidden")));
//extern struct tracepoint __stop___tracepoints[] __attribute__((visibility("hidden")));
//#include <linux/types.h>
//#include <linux/rcupdate.h>
-#include "urcu.h"
+//#include "urcu.h"
#include "immediate.h"
#include "kernelcompat.h"
#include <sys/types.h>
#include <stdarg.h>
-#include "relay.h"
-#include "list.h"
+//#include "list.h"
#include "kernelcompat.h"
+#include "relay.h"
#include "channels.h"
#include "tracercore.h"
#include "marker.h"
#ifndef LTT_CORE_H
#define LTT_CORE_H
-#include "list.h"
#include "kernelcompat.h"
//ust// #include <linux/percpu.h>
#ifndef KERNELCOMPAT_H
#define KERNELCOMPAT_H
+#include <compiler.h>
#include <kcompat.h>
-#include "compiler.h"
-
#include <string.h>
#include <sys/time.h>
ust_SOURCES = ust.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/libustcomm/ustcomm.h
#INCLUDES = -I$(top_builddir)/share
-#INCLUDES += -I@URCU_PATH@
-INCLUDES = -I@KCOMPAT_PATH@
+INCLUDES = -I@URCU_PATH@
+INCLUDES += -I@KCOMPAT_PATH@
#INCLUDES += -I$(top_builddir)/libust
INCLUDES += -I$(top_builddir)/libustcomm
ustd_LDFLAGS = -lpthread
INCLUDES = -I$(top_builddir)/share
-#INCLUDES += -I@URCU_PATH@
+INCLUDES += -I@URCU_PATH@
INCLUDES += -I@KCOMPAT_PATH@
INCLUDES += -I$(top_builddir)/libust
INCLUDES += -I$(top_builddir)/libustcomm