X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fring_buffer_backend.c;h=3202e8d96a2c1c4a45bb7e3e16b4b5cc5aa51488;hb=a880bae51b3d8e927f68ceae2804636976bd62d8;hp=b50c2f3c406405000d8a830af1d19bfe48622e7d;hpb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;p=lttng-ust.git diff --git a/libringbuffer/ring_buffer_backend.c b/libringbuffer/ring_buffer_backend.c index b50c2f3c..3202e8d9 100644 --- a/libringbuffer/ring_buffer_backend.c +++ b/libringbuffer/ring_buffer_backend.c @@ -18,6 +18,7 @@ #include "frontend.h" #include "smp.h" #include "shm.h" +#include "ust-compat.h" /** * lib_ring_buffer_backend_allocate - allocate a channel buffer @@ -222,7 +223,8 @@ void lib_ring_buffer_backend_reset(struct lttng_ust_lib_ring_buffer_backend *buf */ void channel_backend_reset(struct channel_backend *chanb) { - struct channel *chan = caa_container_of(chanb, struct channel, backend); + struct lttng_ust_lib_ring_buffer_channel *chan = caa_container_of(chanb, + struct lttng_ust_lib_ring_buffer_channel, backend); const struct lttng_ust_lib_ring_buffer_config *config = &chanb->config; /* @@ -259,7 +261,8 @@ int channel_backend_init(struct channel_backend *chanb, struct lttng_ust_shm_handle *handle, const int *stream_fds) { - struct channel *chan = caa_container_of(chanb, struct channel, backend); + struct lttng_ust_lib_ring_buffer_channel *chan = caa_container_of(chanb, + struct lttng_ust_lib_ring_buffer_channel, backend); unsigned int i; int ret; size_t shmsize = 0, num_subbuf_alloc;