Initial port of the state system to the LTTng 2.0 trace format
[lttv.git] / lttv / lttv / tracecontext.c
index 596e06f007901418939c6289952aaa4c34164143..165a890f688d49b539ab7f10860746976a032b59 100644 (file)
 
 #include <string.h>
 #include <lttv/lttv.h>
-#include <lttv/tracecontext.h>
+#include <lttv/traceset-process.h>
 #include <ltt/event.h>
 #include <ltt/trace.h>
+#ifdef BABEL_NOFILTER
 #include <lttv/filter.h>
+#endif
 #include <errno.h>
 #include <ltt/time.h>
 #include <lttv/event.h>
@@ -36,6 +38,8 @@
 #include <babeltrace/ctf/events.h>
 #include <babeltrace/ctf/iterator.h>
 
+
+#ifdef BABEL_CLEANUP
 gint compare_tracefile(gconstpointer a, gconstpointer b)
 {
        gint comparison = 0;
@@ -71,7 +75,7 @@ struct _LttvTracesetContextPosition {
                                        * set, else, a position is set (may be end
                                        * of trace, with ep->len == 0) */
 };
-
+#endif
 void lttv_context_init(LttvTracesetContext *self, LttvTraceset *ts)
 {
        LTTV_TRACESET_CONTEXT_GET_CLASS(self)->init(self, ts);
@@ -238,7 +242,9 @@ init(LttvTracesetContext *self, LttvTraceset *ts)
 
        }
        self->sync_position = lttv_traceset_context_position_new(self);
+#ifdef BABEL_CLEANUP   
        self->pqueue = g_tree_new(compare_tracefile);
+#endif
        lttv_process_traceset_seek_time(self, ltt_time_zero);
        lttv_traceset_context_compute_time_span(self, &self->time_span);
 
This page took 0.022358 seconds and 4 git commands to generate.