Add a packet sequence number
[lttng-modules.git] / lttng-events.h
index 4d9bdfd0574390da27f7177c26d561683ae3c553..d2a039e8f664cacf5aea2d91b86aafdd7e31acaa 100644 (file)
@@ -358,6 +358,9 @@ struct lttng_channel_ops {
        int (*current_timestamp) (const struct lib_ring_buffer_config *config,
                        struct lib_ring_buffer *bufb,
                        uint64_t *ts);
+       int (*sequence_number) (const struct lib_ring_buffer_config *config,
+                       struct lib_ring_buffer *bufb,
+                       uint64_t *seq);
 };
 
 struct lttng_transport {
@@ -415,7 +418,6 @@ struct lttng_metadata_stream {
        wait_queue_head_t read_wait;    /* Reader buffer-level wait queue */
        struct list_head list;          /* Stream list */
        struct lttng_transport *transport;
-       struct mutex lock;
 };
 
 
@@ -461,6 +463,7 @@ struct lttng_metadata_cache {
        struct kref refcount;           /* Metadata cache usage */
        struct list_head metadata_stream;       /* Metadata stream list */
        uuid_le uuid;                   /* Trace session unique ID (copy) */
+       struct mutex lock;
 };
 
 void lttng_lock_sessions(void);
This page took 0.03133 seconds and 4 git commands to generate.