projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement userspace probe location extraction and registration
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
load.c
diff --git
a/src/bin/lttng/commands/load.c
b/src/bin/lttng/commands/load.c
index 0516351ea8ddaddfbe4fdfb312c6f986d16ef6c7..07ef1214ff026619c14c36fcc82012093ef27b18 100644
(file)
--- a/
src/bin/lttng/commands/load.c
+++ b/
src/bin/lttng/commands/load.c
@@
-37,6
+37,12
@@
static int opt_load_all;
static const char *session_name;
static const char *session_name;
+#ifdef LTTNG_EMBED_HELP
+static const char help_msg[] =
+#include <lttng-load.1.h>
+;
+#endif
+
enum {
OPT_HELP = 1,
OPT_ALL,
enum {
OPT_HELP = 1,
OPT_ALL,
@@
-157,6
+163,7
@@
int cmd_load(int argc, const char **argv)
poptContext pc;
struct lttng_load_session_attr *session_attr = NULL;
char *input_path = NULL;
poptContext pc;
struct lttng_load_session_attr *session_attr = NULL;
char *input_path = NULL;
+ const char *leftover = NULL;
pc = poptGetContext(NULL, argc, argv, load_opts, 0);
poptReadDefaultConfig(pc, 0);
pc = poptGetContext(NULL, argc, argv, load_opts, 0);
poptReadDefaultConfig(pc, 0);
@@
-200,6
+207,13
@@
int cmd_load(int argc, const char **argv)
}
}
}
}
+ leftover = poptGetArg(pc);
+ if (leftover) {
+ ERR("Unknown argument: %s", leftover);
+ ret = CMD_ERROR;
+ goto end;
+ }
+
/* Mi check */
if (lttng_opt_mi) {
writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
/* Mi check */
if (lttng_opt_mi) {
writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
This page took
0.02403 seconds
and
4
git commands to generate.