X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-events.h;h=a36a312ccb5a3e61c67d70a33bc22faf8327c8f6;hb=68c6ec30fd2532b4a582eb91093116c6cb8d86e6;hp=6148fe12f0e1c90ce35a3c9d56cabe8f22c30761;hpb=2bf9218e860dc384419eda9ebdf561d86f38a85e;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index 6148fe12..a36a312c 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -474,6 +474,7 @@ struct lttng_metadata_stream { struct list_head list; /* Stream list */ struct lttng_transport *transport; uint64_t version; /* Current version of the metadata cache */ + bool coherent; /* Stream in a coherent state */ }; #define LTTNG_DYNAMIC_LEN_STACK_SIZE 128 @@ -548,6 +549,7 @@ struct lttng_metadata_cache { char *data; /* Metadata cache */ unsigned int cache_alloc; /* Metadata allocated size (bytes) */ unsigned int metadata_written; /* Number of bytes written in metadata cache */ + atomic_t producing; /* Metadata being produced (incomplete) */ struct kref refcount; /* Metadata cache usage */ struct list_head metadata_stream; /* Metadata stream list */ uuid_le uuid; /* Trace session unique ID (copy) */ @@ -628,7 +630,7 @@ int lttng_probes_init(void); void lttng_probes_exit(void); int lttng_metadata_output_channel(struct lttng_metadata_stream *stream, - struct channel *chan); + struct channel *chan, bool *coherent); int lttng_id_tracker_get_node_id(const struct lttng_id_hash_node *node); int lttng_id_tracker_empty_set(struct lttng_id_tracker *lf);