projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add listing session option
[lttng-tools.git]
/
lttng
/
options.c
diff --git
a/lttng/options.c
b/lttng/options.c
index 3457f0bc29a8d7b0c1fb987947e0876e8e19c12e..78e1764f9196091f6be3905b5aa3cab4f8d66417 100644
(file)
--- a/
lttng/options.c
+++ b/
lttng/options.c
@@
-1,4
+1,5
@@
-/* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
+/*
+ * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* 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.
* 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 <popt.h>
*/
#include <popt.h>
@@
-24,10
+24,13
@@
/* Option variables */
char *opt_tracing_group;
char *opt_session_name;
/* 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_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,
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},
{"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}
};
{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, " -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");
fprintf(ofp, "\n");
fprintf(ofp, "Tracing options:\n");
//fprintf(ofp, " --session [NAME] Specify tracing session. If no NAME is given\n");
This page took
0.023747 seconds
and
4
git commands to generate.