X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdisable_channels.c;h=55564bc3d604eebc96968f25fac779152238e7bf;hp=f8ed51759a35a1481e5e6e233e3c9ec7dfd13343;hb=679b4943c3b0f451e7f4fbcd804dd8a7a679e253;hpb=fd4dfcecf4a21f7797d350e8dcd291c6f0c64e86 diff --git a/src/bin/lttng/commands/disable_channels.c b/src/bin/lttng/commands/disable_channels.c index f8ed51759..55564bc3d 100644 --- a/src/bin/lttng/commands/disable_channels.c +++ b/src/bin/lttng/commands/disable_channels.c @@ -40,6 +40,7 @@ static pid_t opt_pid; enum { OPT_HELP = 1, OPT_USERSPACE, + OPT_LIST_OPTIONS, }; static struct lttng_handle *handle; @@ -56,6 +57,7 @@ static struct poptOption long_options[] = { #else {"userspace", 'u', POPT_ARG_NONE, 0, OPT_USERSPACE, 0, 0}, #endif + {"list-options", 0, POPT_ARG_NONE, NULL, OPT_LIST_OPTIONS, NULL, NULL}, {0, 0, 0, 0, 0, 0, 0} }; @@ -67,6 +69,7 @@ static void usage(FILE *ofp) fprintf(ofp, "usage: lttng disable-channel NAME[,NAME2,...] [options]\n"); fprintf(ofp, "\n"); fprintf(ofp, " -h, --help Show this help\n"); + fprintf(ofp, " --list-options Simple listing of options\n"); fprintf(ofp, " -s, --session Apply on session name\n"); fprintf(ofp, " -k, --kernel Apply for the kernel tracer\n"); #if 0 @@ -153,6 +156,10 @@ int cmd_disable_channels(int argc, const char **argv) case OPT_USERSPACE: opt_userspace = 1; break; + case OPT_LIST_OPTIONS: + list_cmd_options(stdout, long_options); + ret = CMD_SUCCESS; + goto end; default: usage(stderr); ret = CMD_UNDEFINED;