ust-fd: Add close_range declaration
[lttng-ust.git] / src / common / ringbuffer / frontend_types.h
index 5765579769cc84d50b9031f7985e62f27abbd6d2..3be7ec1bf63bd054a7180d44dcce3329b0a34d5c 100644 (file)
@@ -120,7 +120,7 @@ enum lttng_crash_type {
 
 struct lttng_crash_abi {
        uint8_t magic[RB_CRASH_DUMP_ABI_MAGIC_LEN];
-       uint64_t mmap_length;   /* Overall lenght of crash record */
+       uint64_t mmap_length;   /* Overall length of crash record */
        uint16_t endian;        /*
                                 * { 0x12, 0x34 }: big endian
                                 * { 0x34, 0x12 }: little endian
@@ -181,7 +181,7 @@ struct lttng_ust_ring_buffer {
        int record_disabled;
        /* End of cache-hot 32 bytes cacheline */
 
-       union v_atomic last_tsc;        /*
+       union v_atomic last_timestamp;  /*
                                         * Last timestamp written in the buffer.
                                         */
 
@@ -251,15 +251,21 @@ struct lttng_ust_ring_buffer_ctx_private {
                                                 * prior to record header alignment
                                                 * padding.
                                                 */
-       uint64_t tsc;                           /* time-stamp counter value */
+       uint64_t timestamp;                     /* time-stamp counter value */
        unsigned int rflags;                    /* reservation flags */
-       void *ip;                               /* caller ip address */
-
        struct lttng_ust_ring_buffer *buf;      /*
                                                 * buffer corresponding to processor id
                                                 * for this channel
                                                 */
        struct lttng_ust_ring_buffer_backend_pages *backend_pages;
+
+       /*
+        * Records lost counts are only loaded into these fields before
+        * reserving the last bytes from the ring buffer.
+        */
+       unsigned long records_lost_full;
+       unsigned long records_lost_wrap;
+       unsigned long records_lost_big;
 };
 
 static inline
This page took 0.033889 seconds and 4 git commands to generate.