{
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);
+
+}