X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fring_buffer_backend.c;h=20d9e2d3cb81e4de7f0904b0992ae84aeb570d85;hb=b25c5b37ef536d7b09fe901d97e678220ec69c9a;hp=23802e82321416d81782911e081b4359edd1ba35;hpb=45e9e6996ae8da8d5dfffbe9aebd8e0438a84124;p=lttng-ust.git diff --git a/libringbuffer/ring_buffer_backend.c b/libringbuffer/ring_buffer_backend.c index 23802e82..20d9e2d3 100644 --- a/libringbuffer/ring_buffer_backend.c +++ b/libringbuffer/ring_buffer_backend.c @@ -6,11 +6,11 @@ * Dual LGPL v2.1/GPL v2 license. */ +#define _GNU_SOURCE #include -#include "lttng/core.h" - #include +#include "vatomic.h" #include "backend.h" #include "frontend.h" #include "smp.h" @@ -293,6 +293,7 @@ int channel_backend_init(struct channel_backend *chanb, buf = shmp(handle, chanb->buf[0].shmp); if (!buf) goto end; + set_shmp(buf->self, chanb->buf[0].shmp._ref); ret = lib_ring_buffer_create(buf, chanb, -1, handle, shmobj); if (ret)