Remove calibrate from liblttng-ctl
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 1c2ab61886c824d62389efa39d777f162bb59c36..839a8600e2a3a94ca3eab38b03863138225758fa 100644 (file)
@@ -398,37 +398,6 @@ int kernctl_wait_quiescent(int fd)
                        LTTNG_KERNEL_WAIT_QUIESCENT);
 }
 
-int kernctl_calibrate(int fd, struct lttng_kernel_calibrate *calibrate)
-{
-       int ret;
-
-       if (lttng_kernel_use_old_abi == -1) {
-               ret = LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_CALIBRATE, calibrate);
-               if (!ret) {
-                       lttng_kernel_use_old_abi = 0;
-                       goto end;
-               }
-               lttng_kernel_use_old_abi = 1;
-       }
-       if (lttng_kernel_use_old_abi) {
-               struct lttng_kernel_old_calibrate old_calibrate;
-
-               old_calibrate.type = calibrate->type;
-               ret = LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_OLD_CALIBRATE,
-                               &old_calibrate);
-               if (ret) {
-                       goto end;
-               }
-               calibrate->type = old_calibrate.type;
-       } else {
-               ret = LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_CALIBRATE, calibrate);
-       }
-
-end:
-       return ret;
-}
-
-
 int kernctl_buffer_flush(int fd)
 {
        return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_FLUSH);
This page took 0.024799 seconds and 5 git commands to generate.