Move struct ltt_channel to shm for consumer flush
[lttng-ust.git] / libringbuffer / frontend_types.h
index 84593260c4f7b7ef941708d9fd0347881165efe1..93131616f613050d3a7c0707ce486219ec6fc85f 100644 (file)
 #include <urcu/list.h>
 #include <urcu/uatomic.h>
 
-#include "ust/core.h"
+#include "lttng/core.h"
 
-#include <ust/usterr-signal-safe.h>
-#include <ust/ringbuffer-config.h>
+#include <lttng/usterr-signal-safe.h>
+#include <lttng/ringbuffer-config.h>
 #include "backend_types.h"
 #include "shm_internal.h"
 
@@ -48,6 +48,7 @@ struct channel {
        unsigned long read_timer_interval;      /* Reader wakeup (jiffies) */
        //wait_queue_head_t read_wait;          /* reader wait queue */
        int finalized;                          /* Has channel been finalized */
+       size_t priv_data_offset;
        /*
         * Associated backend contains a variable-length array. Needs to
         * be last member.
@@ -114,7 +115,7 @@ struct lttng_ust_lib_ring_buffer {
 static inline
 void *channel_get_private(struct channel *chan)
 {
-       return chan->backend.priv;
+       return ((char *) chan) + chan->priv_data_offset;
 }
 
 /*
This page took 0.023823 seconds and 4 git commands to generate.