X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Foptions.c;h=78e1764f9196091f6be3905b5aa3cab4f8d66417;hp=3457f0bc29a8d7b0c1fb987947e0876e8e19c12e;hb=5716705821202372fd16168f66f347ba293ef6b4;hpb=fac6795d6e2c60e79bdc7dab42da94d2025a57d3 diff --git a/lttng/options.c b/lttng/options.c index 3457f0bc2..78e1764f9 100644 --- a/lttng/options.c +++ b/lttng/options.c @@ -1,4 +1,5 @@ -/* Copyright (C) 2011 - David Goulet +/* + * Copyright (C) 2011 - David Goulet * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -13,7 +14,6 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * */ #include @@ -24,10 +24,13 @@ /* Option variables */ char *opt_tracing_group; char *opt_session_name; +char *opt_sessiond_path; int opt_trace_kernel = 0; int opt_quiet = 0; int opt_verbose = 0; int opt_list_apps = 0; +int opt_no_sessiond = 0; +int opt_list_session = 0; enum { OPT_HELP = 42, @@ -43,6 +46,9 @@ static struct poptOption long_options[] = { {"quiet", 'q', POPT_ARG_VAL, &opt_quiet, 1, 0}, {"verbose", 'v', POPT_ARG_VAL, &opt_verbose, 1, 0}, {"list-apps", 'l', POPT_ARG_VAL, &opt_list_apps, 1, 0}, + {"no-sessiond", 0, POPT_ARG_VAL, &opt_no_sessiond, 1, 0}, + {"sessiond-path", 0, POPT_ARG_STRING, &opt_sessiond_path, 0, 0}, + {"list-session", 0, POPT_ARG_VAL, &opt_list_session, 1, 0}, {0, 0, 0, 0, 0, 0} }; @@ -60,6 +66,11 @@ static void usage(FILE *ofp) fprintf(ofp, " -q, --quiet Quiet mode\n"); fprintf(ofp, " --help Show help\n"); fprintf(ofp, " --group NAME Unix tracing group name. (default: tracing)\n"); + fprintf(ofp, " --no-sessiond Don't spawn a session daemon.\n"); + fprintf(ofp, " --sessiond-path Session daemon full path\n"); + fprintf(ofp, "\n"); + fprintf(ofp, "Session options:\n"); + fprintf(ofp, " --list-session List all available sessions\n"); fprintf(ofp, "\n"); fprintf(ofp, "Tracing options:\n"); //fprintf(ofp, " --session [NAME] Specify tracing session. If no NAME is given\n");