projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: introduce lttng_tracker_ids data structure
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
disable_events.c
diff --git
a/src/bin/lttng/commands/disable_events.c
b/src/bin/lttng/commands/disable_events.c
index 238f8463fec1553c4f8410091a3ebbb057752423..290e72791e034fb8060ffda8cfd1e8c77ef5e9ea 100644
(file)
--- a/
src/bin/lttng/commands/disable_events.c
+++ b/
src/bin/lttng/commands/disable_events.c
@@
-40,6
+40,12
@@
static int opt_log4j;
static int opt_python;
static int opt_event_type;
static int opt_python;
static int opt_event_type;
+#ifdef LTTNG_EMBED_HELP
+static const char help_msg[] =
+#include <lttng-disable-event.1.h>
+;
+#endif
+
enum {
OPT_HELP = 1,
OPT_TYPE_SYSCALL,
enum {
OPT_HELP = 1,
OPT_TYPE_SYSCALL,
@@
-322,6
+328,7
@@
int cmd_disable_events(int argc, const char **argv)
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
char *session_name = NULL;
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
char *session_name = NULL;
+ const char *leftover = NULL;
int event_type = -1;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
int event_type = -1;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
@@
-392,6
+399,13
@@
int cmd_disable_events(int argc, const char **argv)
goto end;
}
goto end;
}
+ leftover = poptGetArg(pc);
+ if (leftover) {
+ ERR("Unknown argument: %s", leftover);
+ ret = CMD_ERROR;
+ goto end;
+ }
+
if (!opt_session_name) {
session_name = get_session_name();
if (session_name == NULL) {
if (!opt_session_name) {
session_name = get_session_name();
if (session_name == NULL) {
This page took
0.024933 seconds
and
4
git commands to generate.