Fix: race with the viewer and readiness of streams
[lttng-tools.git] / src / bin / lttng-sessiond / consumer.c
index 18931a8b7b8d488ab437522889894049b5f8f20b..8806e9c322bef43b818975bee8f44bc520e3aa53 100644 (file)
@@ -906,6 +906,19 @@ void consumer_init_stream_comm_msg(struct lttcomm_consumer_msg *msg,
        msg->u.stream.cpu = cpu;
 }
 
+void consumer_init_streams_sent_comm_msg(struct lttcomm_consumer_msg *msg,
+               enum lttng_consumer_command cmd,
+               uint64_t channel_key, uint64_t net_seq_idx)
+{
+       assert(msg);
+
+       memset(msg, 0, sizeof(struct lttcomm_consumer_msg));
+
+       msg->cmd_type = cmd;
+       msg->u.sent_streams.channel_key = channel_key;
+       msg->u.sent_streams.net_seq_idx = net_seq_idx;
+}
+
 /*
  * Send stream communication structure to the consumer.
  */
This page took 0.023288 seconds and 4 git commands to generate.