Ust consumer: Expose userspace clear buffer operation
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 7cd41cbd75cbbd2b3d60be5659be325ddc8773fc..8916daefa1a1b3f93769a46082c2c8cf5b8682f2 100644 (file)
@@ -2255,6 +2255,14 @@ void lttng_ustconsumer_flush_buffer(struct lttng_consumer_stream *stream,
        ustctl_flush_buffer(stream->ustream, producer);
 }
 
+void lttng_ustconsumer_clear_buffer(struct lttng_consumer_stream *stream)
+{
+       assert(stream);
+       assert(stream->ustream);
+
+       ustctl_clear_buffer(stream->ustream);
+}
+
 int lttng_ustconsumer_get_current_timestamp(
                struct lttng_consumer_stream *stream, uint64_t *ts)
 {
This page took 0.02443 seconds and 5 git commands to generate.