Use rseq for commit counter
[lttng-ust.git] / libringbuffer / frontend_internal.h
index 68aa70223ea5529acd3ecdf67a3c9b4057fcdb49..2bb023f8331b93140c97424f1c0f256f39b0cad2 100644 (file)
@@ -253,6 +253,7 @@ int lib_ring_buffer_reserve_committed(const struct lttng_ust_lib_ring_buffer_con
                offset = v_read(config, &buf->offset);
                idx = subbuf_index(offset, chan);
                commit_count = v_read(config, &cc_hot->cc);
+               commit_count += cc_hot->cc_rseq;
        } while (offset != v_read(config, &buf->offset));
 
        return ((buf_trunc(offset, chan) >> chan->backend.num_subbuf_order)
This page took 0.022862 seconds and 5 git commands to generate.