Dedicated function to wakeup the consumer metadata pipe
[lttng-tools.git] / src / common / consumer / consumer-metadata-cache.h
index 8ce7f30b19ee7d795af047ca35f78fbf9b7f3ecb..d1ca0be2c199a0b824ca7dab7c4e4a59b1ec3fe6 100644 (file)
 struct consumer_metadata_cache {
        char *data;
        uint64_t cache_alloc_size;
+       /*
+        * Current version of the metadata cache.
+        */
+       uint64_t version;
        /*
         * The upper-limit of data written inside the buffer.
         *
@@ -42,10 +46,12 @@ struct consumer_metadata_cache {
 };
 
 int consumer_metadata_cache_write(struct lttng_consumer_channel *channel,
-               unsigned int offset, unsigned int len, char *data);
+               unsigned int offset, unsigned int len, uint64_t version,
+               char *data);
 int consumer_metadata_cache_allocate(struct lttng_consumer_channel *channel);
 void consumer_metadata_cache_destroy(struct lttng_consumer_channel *channel);
 int consumer_metadata_cache_flushed(struct lttng_consumer_channel *channel,
                uint64_t offset, int timer);
+int consumer_metadata_wakeup_pipe(const struct lttng_consumer_channel *channel);
 
 #endif /* CONSUMER_METADATA_CACHE_H */
This page took 0.024078 seconds and 4 git commands to generate.