X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2Ffrontend_types.h;h=93131616f613050d3a7c0707ce486219ec6fc85f;hb=a3f61e7f689a5fc60b833a773f462989dc6cc78f;hp=84593260c4f7b7ef941708d9fd0347881165efe1;hpb=b5a3dfa5923801ddeea22ce70758d1e61200eac2;p=lttng-ust.git diff --git a/libringbuffer/frontend_types.h b/libringbuffer/frontend_types.h index 84593260..93131616 100644 --- a/libringbuffer/frontend_types.h +++ b/libringbuffer/frontend_types.h @@ -21,10 +21,10 @@ #include #include -#include "ust/core.h" +#include "lttng/core.h" -#include -#include +#include +#include #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; } /*