X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng%2Fcommands%2Fdisable_channels.c;h=a45f3ef092b8aad46cdd9a93d144b7985e1841c8;hb=ed52805d21fb7a55ad066d4591f6a5f02c2108ba;hp=9a816e3efb0bc652663492d224d038dc05dba253;hpb=cd80958d00fddabced5fbd60641978516a01e29e;p=lttng-tools.git diff --git a/lttng/commands/disable_channels.c b/lttng/commands/disable_channels.c index 9a816e3ef..a45f3ef09 100644 --- a/lttng/commands/disable_channels.c +++ b/lttng/commands/disable_channels.c @@ -34,6 +34,7 @@ static char *opt_kernel; static char *opt_session_name; static int opt_pid_all; static int opt_userspace; +static char *opt_cmd_name; static pid_t opt_pid; enum { @@ -48,7 +49,7 @@ static struct poptOption long_options[] = { {"help", 'h', POPT_ARG_NONE, 0, OPT_HELP, 0, 0}, {"session", 's', POPT_ARG_STRING, &opt_session_name, 0, 0, 0}, {"kernel", 'k', POPT_ARG_VAL, &opt_kernel, 1, 0, 0}, - {"userspace", 'u', POPT_ARG_NONE, 0, OPT_USERSPACE, 0, 0}, + {"userspace", 'u', POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, &opt_cmd_name, OPT_USERSPACE, 0, 0}, {"all", 0, POPT_ARG_VAL, &opt_pid_all, 1, 0, 0}, {"pid", 'p', POPT_ARG_INT, &opt_pid, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}