Add ust stop trace feature
[lttng-tools.git] / lttng / options.c
index 1ed0aca7d38b07e7ebf903709a478324b5ee6c04..3025117e4c36b9f67bd8a168260d94304b34d226 100644 (file)
@@ -36,6 +36,7 @@ int opt_list_session = 0;
 int opt_list_traces = 0;
 pid_t opt_create_trace = 0;
 pid_t opt_start_trace = 0;
+pid_t opt_stop_trace = 0;
 
 enum {
        OPT_HELP = 42,
@@ -58,6 +59,7 @@ static struct poptOption long_options[] = {
        {"session",                     's',    POPT_ARG_STRING,        &opt_session_uuid, 0, 0, 0},
        {"sessiond-path",       0,              POPT_ARG_STRING,        &opt_sessiond_path, 0, 0, 0},
        {"start",                       0,              POPT_ARG_INT,           &opt_start_trace, 0, 0, 0},
+       {"stop",                        0,              POPT_ARG_INT,           &opt_stop_trace, 0, 0, 0},
        {"verbose",                     'v',    POPT_ARG_VAL,           &opt_verbose, 1, 0, 0},
        //{"session",                   0,              POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, &opt_session_name, 0, 0},
        {0, 0, 0, 0, 0, 0, 0}
@@ -93,6 +95,7 @@ static void usage(FILE *ofp)
        fprintf(ofp, "  -t, --list-traces            List session's traces. Use -s to specify the session\n");
        fprintf(ofp, "  -C, --create-trace PID       Create trace for PID\n");
        fprintf(ofp, "      --start PID              Start trace for PID\n");
+       fprintf(ofp, "      --stop PID               Stop trace for PID\n");
        fprintf(ofp, "\n");
        fprintf(ofp, "Please see the lttng(1) man page for full documentation.\n");
        fprintf(ofp, "See http://lttng.org/ust for updates, bug reports and news.\n");
This page took 0.022972 seconds and 4 git commands to generate.