Add calibrate command
[lttng-tools.git] / ltt-sessiond / kernel-ctl.c
index 27210708e64f1f791b9322d78e01fe7d3258d5e9..3dd146dd4b9792fe6754ef1136a49aef6b111c53 100644 (file)
@@ -408,6 +408,23 @@ void kernel_wait_quiescent(int fd)
        }
 }
 
+/*
+ *  kernel_calibrate
+ */
+int kernel_calibrate(int fd, struct lttng_kernel_calibrate *calibrate)
+{
+       int ret;
+
+       ret = kernctl_calibrate(fd, calibrate);
+       if (ret < 0) {
+               perror("calibrate ioctl");
+               return -1;
+       }
+
+       return 0;
+}
+
+
 /*
  *  kernel_metadata_flush_buffer
  *
This page took 0.024648 seconds and 5 git commands to generate.