X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libringbuffer%2Fring_buffer_backend.c;h=9b33408125e96c80981fa3f9bacdd54f716e0efb;hb=96e80018cb6ef2098193bd4d8fe724df29f2faf0;hp=23802e82321416d81782911e081b4359edd1ba35;hpb=45e9e6996ae8da8d5dfffbe9aebd8e0438a84124;p=lttng-ust.git diff --git a/libringbuffer/ring_buffer_backend.c b/libringbuffer/ring_buffer_backend.c index 23802e82..9b334081 100644 --- a/libringbuffer/ring_buffer_backend.c +++ b/libringbuffer/ring_buffer_backend.c @@ -6,11 +6,12 @@ * Dual LGPL v2.1/GPL v2 license. */ +#define _GNU_SOURCE #include - -#include "lttng/core.h" +#include #include +#include "vatomic.h" #include "backend.h" #include "frontend.h" #include "smp.h" @@ -293,6 +294,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)