kernel-ctl: Expose kernel clear buffer operation
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 14d96b5778ba36a1d05c2c44608c4b36f3668955..5f25adf02dc269debabcbdad5d04729ec0d46eb3 100644 (file)
@@ -453,6 +453,11 @@ int kernctl_buffer_flush_empty(int fd)
        return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_FLUSH_EMPTY);
 }
 
+int kernctl_buffer_clear(int fd)
+{
+       return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_CLEAR);
+}
+
 /* returns the version of the metadata. */
 int kernctl_get_metadata_version(int fd, uint64_t *version)
 {
This page took 0.035921 seconds and 4 git commands to generate.