kernctl commands to extract the stream instance id
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 82d766e1c1e70b53f0b0e3ec354bd7ab93da621b..dd228773bc655eb985e88a6b2fe20e8c87221115 100644 (file)
@@ -538,3 +538,9 @@ 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.03464 seconds and 4 git commands to generate.