Store the relay protocol version in the consumer_output
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 8574c1f050b88f387e78e8b06ac80d6c97df5be6..dd228773bc655eb985e88a6b2fe20e8c87221115 100644 (file)
@@ -532,3 +532,15 @@ int kernctl_get_current_timestamp(int fd, uint64_t *ts)
 {
        return ioctl(fd, LTTNG_RING_BUFFER_GET_CURRENT_TIMESTAMP, ts);
 }
+
+/* Returns the packet sequence number of the current sub-buffer. */
+int kernctl_get_sequence_number(int fd, uint64_t *seq)
+{
+       return ioctl(fd, LTTNG_RING_BUFFER_GET_SEQ_NUM, seq);
+}
+
+/* Returns the stream instance id. */
+int kernctl_get_instance_id(int fd, uint64_t *id)
+{
+       return ioctl(fd, LTTNG_RING_BUFFER_INSTANCE_ID, id);
+}
This page took 0.023424 seconds and 4 git commands to generate.