Mi: mi backend + mi for command version
[lttng-tools.git] / src / bin / lttng / commands / calibrate.c
index 9c524bd12509286b91331153757c1313fe6c8d3b..7d4de2909cf0f3fc45c1234c52b1f09e7fb2ec3f 100644 (file)
@@ -73,8 +73,8 @@ static struct poptOption long_options[] = {
         * tracer anymore.
         */
        {"function:entry", 0,   POPT_ARG_NONE, 0, OPT_FUNCTION_ENTRY, 0, 0},
-#endif
        {"syscall",        0,   POPT_ARG_NONE, 0, OPT_SYSCALL, 0, 0},
+#endif
        {"list-options", 0, POPT_ARG_NONE, NULL, OPT_LIST_OPTIONS, NULL, NULL},
        {0, 0, 0, 0, 0, 0, 0}
 };
@@ -128,11 +128,18 @@ static int calibrate_lttng(void)
        } else if (opt_userspace) {
                dom.type = LTTNG_DOMAIN_UST;
        } else {
-               ERR("Please specify a tracer (-k/--kernel or -u/--userspace)");
+               print_missing_domain();
                ret = CMD_ERROR;
                goto error;
        }
 
+       /* TODO: mi support */
+       if (lttng_opt_mi) {
+               ret = -LTTNG_ERR_MI_NOT_IMPLEMENTED;
+               ERR("mi option not supported");
+               goto error;
+       }
+
        handle = lttng_create_handle(NULL, &dom);
        if (handle == NULL) {
                ret = CMD_ERROR;
This page took 0.027117 seconds and 5 git commands to generate.