X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Foptions.c;h=1ed0aca7d38b07e7ebf903709a478324b5ee6c04;hp=183c54dcf0757e2b74f658c0fb7c61804d21b4dd;hb=1657e9bb835a28e66396deac871270fe373d5ff4;hpb=e07ae692cc8537fe49483b65b2ba77d591010baa diff --git a/lttng/options.c b/lttng/options.c index 183c54dcf..1ed0aca7d 100644 --- a/lttng/options.c +++ b/lttng/options.c @@ -33,6 +33,7 @@ int opt_verbose = 0; int opt_list_apps = 0; int opt_no_sessiond = 0; int opt_list_session = 0; +int opt_list_traces = 0; pid_t opt_create_trace = 0; pid_t opt_start_trace = 0; @@ -50,6 +51,7 @@ static struct poptOption long_options[] = { {"kernel", 0, POPT_ARG_VAL, &opt_trace_kernel, 1, 0, 0}, {"list-apps", 'L', POPT_ARG_VAL, &opt_list_apps, 1, 0, 0}, {"list-sessions", 'l', POPT_ARG_VAL, &opt_list_session, 1, 0, 0}, + {"list-traces", 't', POPT_ARG_VAL, &opt_list_traces, 1, 0, 0}, {"no-kernel", 0, POPT_ARG_VAL, &opt_trace_kernel, 0, 0, 0}, {"no-sessiond", 0, POPT_ARG_VAL, &opt_no_sessiond, 1, 0, 0}, {"quiet", 'q', POPT_ARG_VAL, &opt_quiet, 1, 0, 0}, @@ -88,6 +90,7 @@ static void usage(FILE *ofp) //fprintf(ofp, " --kernel Enable kernel tracing\n"); //fprintf(ofp, " --no-kernel Disable kernel tracing\n"); fprintf(ofp, " -L, --list-apps List traceable UST applications\n"); + 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, "\n");