Fix: timestamp_end field should include all events within sub-buffer
[lttng-ust.git] / libringbuffer / frontend_types.h
index 629abcbd5b4186592176f2609b03d4820a56b7b8..d0890408eb9bfa4965fda6f1326d00693530a6d8 100644 (file)
@@ -202,6 +202,20 @@ struct lttng_ust_lib_ring_buffer {
 
        DECLARE_SHMP(struct commit_counters_cold, commit_cold);
                                        /* Commit count per sub-buffer */
+       DECLARE_SHMP(uint64_t, ts_end); /*
+                                        * timestamp_end per sub-buffer.
+                                        * Time is sampled by the
+                                        * switch_*_end() callbacks
+                                        * which are the last space
+                                        * reservation performed in the
+                                        * sub-buffer before it can be
+                                        * fully committed and
+                                        * delivered. This time value is
+                                        * then read by the deliver
+                                        * callback, performed by the
+                                        * last commit before the buffer
+                                        * becomes readable.
+                                        */
        long active_readers;            /*
                                         * Active readers count
                                         * standard atomic access (shared)
This page took 0.025382 seconds and 4 git commands to generate.