consumerd: pass channel instance to stream creation function
[lttng-tools.git] / src / common / consumer / consumer.c
index 6525a7203130e7bbf3ce3a97cba489735029a61b..f2ea2918778469d9416101ac848f75d1dcacf6e3 100644 (file)
@@ -564,7 +564,9 @@ void consumer_stream_update_channel_attributes(
                        channel->tracefile_size;
 }
 
-struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key,
+struct lttng_consumer_stream *consumer_allocate_stream(
+               struct lttng_consumer_channel *channel,
+               uint64_t channel_key,
                uint64_t stream_key,
                const char *channel_name,
                uint64_t relayd_id,
@@ -592,6 +594,7 @@ struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key,
        }
 
        rcu_read_lock();
+       stream->chan = channel;
        stream->key = stream_key;
        stream->trace_chunk = trace_chunk;
        stream->out_fd = -1;
This page took 0.024196 seconds and 4 git commands to generate.