Per-stream ioctl to get the current timestamp
[lttng-modules.git] / lttng-ring-buffer-metadata-client.h
index 61307154ef6ddf75c4927d428d09829e8538e67d..bea482b9a961316460800bb9d4294ef2ea8c7b45 100644 (file)
@@ -168,6 +168,13 @@ static int client_events_discarded(const struct lib_ring_buffer_config *config,
        return -ENOSYS;
 }
 
+static int client_current_timestamp(const struct lib_ring_buffer_config *config,
+               struct lib_ring_buffer *bufb,
+               uint64_t *ts)
+{
+       return -ENOSYS;
+}
+
 static int client_content_size(const struct lib_ring_buffer_config *config,
                        struct lib_ring_buffer *bufb,
                        uint64_t *content_size)
@@ -222,6 +229,7 @@ struct channel *_channel_create(const char *name,
        lttng_chan->ops->content_size = client_content_size;
        lttng_chan->ops->packet_size = client_packet_size;
        lttng_chan->ops->stream_id = client_stream_id;
+       lttng_chan->ops->current_timestamp = client_current_timestamp;
 
        return channel_create(&client_config, name, lttng_chan, buf_addr,
                              subbuf_size, num_subbuf, switch_timer_interval,
This page took 0.023217 seconds and 4 git commands to generate.