X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng%2Foptions.c;h=ee13f120bf16fee21c4bcb0b9da7d76ea70d05a9;hb=5b8719f52eb9c8012e3bd48be778548cfbf5a8b8;hp=3457f0bc29a8d7b0c1fb987947e0876e8e19c12e;hpb=fac6795d6e2c60e79bdc7dab42da94d2025a57d3;p=lttng-tools.git diff --git a/lttng/options.c b/lttng/options.c index 3457f0bc2..ee13f120b 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,12 @@ /* 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; enum { OPT_HELP = 42, @@ -43,6 +45,8 @@ 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}, {0, 0, 0, 0, 0, 0} }; @@ -60,6 +64,8 @@ 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, "Tracing options:\n"); //fprintf(ofp, " --session [NAME] Specify tracing session. If no NAME is given\n");