Fix: timestamp_end field should include all events within sub-buffer
[lttng-modules.git] / lib / ringbuffer / frontend_types.h
index 837a926ff2ebe54211486873f2db77193103505f..0d340afb50b3de8f32b9519823fe817ac2c242a2 100644 (file)
@@ -120,6 +120,20 @@ struct lib_ring_buffer {
 
        struct commit_counters_cold *commit_cold;
                                        /* Commit count per sub-buffer */
+       u64 *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.
+                                        */
        atomic_long_t active_readers;   /*
                                         * Active readers count
                                         * standard atomic access (shared)
This page took 0.023457 seconds and 4 git commands to generate.