Mi: mi backend + mi for command version
[lttng-tools.git] / src / bin / lttng / commands / add_context.c
index 405b7828f043dea695beff3bde4206cec59ee4ff..2f7559c3017d66d4679b7265aad97166eb65b449 100644 (file)
@@ -514,6 +514,9 @@ static void usage(FILE *ofp)
        fprintf(ofp, "                           TYPE can be one of the strings below:\n");
        print_ctx_type(ofp);
        fprintf(ofp, "\n");
+       fprintf(ofp, "Note that the vpid, vppid and vtid context types represent the virtual process id,\n"
+                       "virtual parent process id and virtual thread id as seen from the current execution context\n"
+                       "as opposed to the pid, ppid and tid which are kernel internal data structures.\n\n");
        fprintf(ofp, "Example:\n");
        fprintf(ofp, "This command will add the context information 'prio' and two per-cpu\n"
                        "perf counters (hardware branch misses and cache misses), to all channels\n"
@@ -644,6 +647,13 @@ int cmd_add_context(int argc, const char **argv)
                goto end;
        }
 
+       /* TODO: mi support */
+       if (lttng_opt_mi) {
+               ret = -LTTNG_ERR_MI_NOT_IMPLEMENTED;
+               ERR("mi option not supported");
+               goto end;
+       }
+
        pc = poptGetContext(NULL, argc, argv, long_options, 0);
        poptReadDefaultConfig(pc, 0);
 
This page took 0.024943 seconds and 5 git commands to generate.