Add a packet sequence number
[lttng-modules.git] / lib / ringbuffer / frontend_internal.h
index 47c080297ebd45ffd723de7c78caa6130fa672d3..d170e9abd46b27b2cf269bfd1ae40ea33413e8ac 100644 (file)
@@ -367,6 +367,12 @@ void lib_ring_buffer_check_deliver(const struct lib_ring_buffer_config *config,
                                                                        buf,
                                                                        idx));
 
+                       /*
+                        * Increment the packet counter while we have exclusive
+                        * access.
+                        */
+                       subbuffer_inc_packet_count(config, &buf->backend, idx);
+
                        /*
                         * Set noref flag and offset for this subbuffer id.
                         * Contains a memory barrier that ensures counter stores
This page took 0.02297 seconds and 4 git commands to generate.