X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-events.h;h=2c6df40a7b7b328140a451c00cdcc3115ca9e598;hb=02f0c95cdc69859fa9b77e2458cf05352dad4d92;hp=470df254f41a34927e273c447f78f8b5d1c2ae88;hpb=853aee818b0f82ff37a7af159b6fa657ec3bcd29;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index 470df254..2c6df40a 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include @@ -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 @@ -526,6 +527,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 */ + int 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) */ @@ -606,7 +608,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_pid_tracker_get_node_pid(const struct lttng_pid_hash_node *node); struct lttng_pid_tracker *lttng_pid_tracker_create(void);