X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.h;h=5a11950084bce1f36625ff0ce7809c31ca5eae71;hp=3a0c6c8d8f5e3a737e9ce6da64c3fb4e09c4dd21;hb=75d83e506938a3e673ad19bb11838ee88e977e72;hpb=a9838785aecf564595c531772f7ca906b658afa0 diff --git a/src/common/consumer.h b/src/common/consumer.h index 3a0c6c8d8..5a1195008 100644 --- a/src/common/consumer.h +++ b/src/common/consumer.h @@ -290,6 +290,16 @@ struct lttng_consumer_stream { * acquired in the destroy path. */ unsigned int globally_visible; + /* + * Pipe to wake up the metadata poll thread when the UST metadata + * cache is updated. + */ + int ust_metadata_poll_pipe[2]; + /* + * How much metadata was read from the metadata cache and sent + * to the channel. + */ + uint64_t ust_metadata_pushed; }; /* @@ -386,8 +396,10 @@ struct lttng_consumer_local_data { enum lttng_consumer_type type; /* socket to communicate errors with sessiond */ int consumer_error_socket; - /* socket to ask metadata to sessiond */ + /* socket to ask metadata to sessiond. */ int consumer_metadata_socket; + /* Protect consumer_metadata_socket. */ + pthread_mutex_t metadata_socket_lock; /* socket to exchange commands with sessiond */ char *consumer_command_sock_path; /* communication with splice */