Network streaming support
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 8ade0830d73da3a51636554fa3be6a57253e3df9..1396cd9bbe846559ee345f6488fdd3808ac84ae1 100644 (file)
@@ -187,3 +187,16 @@ int kernctl_put_subbuf(int fd)
 {
        return ioctl(fd, RING_BUFFER_PUT_SUBBUF);
 }
+
+/* Set the stream_id */
+int kernctl_set_stream_id(int fd, unsigned long *stream_id)
+{
+       return ioctl(fd, RING_BUFFER_SET_STREAM_ID, stream_id);
+}
+
+/* Get the offset of the stream_id in the packet header */
+int kernctl_get_net_stream_id_offset(int fd, unsigned long *offset)
+{
+       return ioctl(fd, LTTNG_KERNEL_STREAM_ID_OFFSET, offset);
+
+}
This page took 0.022947 seconds and 4 git commands to generate.