Add kernctl RING_BUFFER_SNAPSHOT_SAMPLE_POSITIONS command
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 839a8600e2a3a94ca3eab38b03863138225758fa..fffa64c87dd79cdec16e53380b5ba0003b257d44 100644 (file)
@@ -470,6 +470,16 @@ int kernctl_snapshot(int fd)
        return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_SNAPSHOT);
 }
 
+/*
+ * Get a snapshot of the current ring buffer producer and consumer positions,
+ * regardless of whether or not the two positions are contained within the
+ * same sub-buffer.
+ */
+int kernctl_snapshot_sample_positions(int fd)
+{
+       return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_SNAPSHOT_SAMPLE_POSITIONS);
+}
+
 /* Get the consumer position (iteration start) */
 int kernctl_snapshot_get_consumed(int fd, unsigned long *pos)
 {
This page took 0.02276 seconds and 4 git commands to generate.