Support to dump the kernel metadata cache from the beginning
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index ec078fb477a39eec0988c3075d8f3d86cad91ea4..775cb1766f62e4a356cf49ca739351c4cedc7dac 100644 (file)
@@ -184,6 +184,7 @@ static struct lttng_consumer_stream *allocate_stream(int cpu, int key,
                goto error;
        }
 
+       consumer_stream_update_channel_attributes(stream, channel);
        stream->chan = channel;
 
 error:
@@ -2043,6 +2044,15 @@ void *lttng_ustctl_get_mmap_base(struct lttng_consumer_stream *stream)
        return ustctl_get_mmap_base(stream->ustream);
 }
 
+void lttng_ustctl_flush_buffer(struct lttng_consumer_stream *stream,
+               int producer_active)
+{
+       assert(stream);
+       assert(stream->ustream);
+
+       ustctl_flush_buffer(stream->ustream, producer_active);
+}
+
 /*
  * Take a snapshot for a specific stream.
  *
This page took 0.02605 seconds and 4 git commands to generate.