Add a packet sequence number
[lttng-modules.git] / lib / ringbuffer / backend_internal.h
index 35b26f77190edb9d1588f9ace92866f304fe1053..04a7ae17db7ea7fcba964f1d64092c5de7409b22 100644 (file)
@@ -309,6 +309,14 @@ unsigned long subbuffer_get_data_size(
        return pages->data_size;
 }
 
+static inline
+void subbuffer_inc_packet_count(const struct lib_ring_buffer_config *config,
+                               struct lib_ring_buffer_backend *bufb,
+                               unsigned long idx)
+{
+       bufb->buf_cnt[idx].seq_cnt++;
+}
+
 /**
  * lib_ring_buffer_clear_noref - Clear the noref subbuffer flag, called by
  *                               writer.
This page took 0.023297 seconds and 4 git commands to generate.