Implement the relayd live features
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 495301e5ff362cc85d9748fa4ad0ee60938b0490..5ea3e1ae12a122761750c291a7240708b4c36469 100644 (file)
@@ -426,3 +426,9 @@ int kernctl_get_stream_id(int fd, uint64_t *stream_id)
 {
        return ioctl(fd, LTTNG_RING_BUFFER_GET_STREAM_ID, stream_id);
 }
+
+/* Returns the current timestamp. */
+int kernctl_get_current_timestamp(int fd, uint64_t *ts)
+{
+       return ioctl(fd, LTTNG_RING_BUFFER_GET_CURRENT_TIMESTAMP, ts);
+}
This page took 0.023356 seconds and 4 git commands to generate.