Extract the lost packets and discarded events counters
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 8574c1f050b88f387e78e8b06ac80d6c97df5be6..82d766e1c1e70b53f0b0e3ec354bd7ab93da621b 100644 (file)
@@ -532,3 +532,9 @@ 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);
+}
This page took 0.023497 seconds and 4 git commands to generate.