X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Flttng.c;h=7ab1125e3240fad20a37babb74ebfdb15c6245f2;hp=25665b3695db85ceb27a17db5032035237e8b0f0;hb=f0f2dce996c5b9e349bda8ea545c0653770260a8;hpb=890d8fe47755c3bad936389cf48ffa141cff41c9 diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index 25665b369..7ab1125e3 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -65,6 +65,7 @@ static struct option long_options[] = { /* First level command */ static struct cmd_struct commands[] = { { "list", cmd_list}, + { "status", cmd_status}, { "create", cmd_create}, { "destroy", cmd_destroy}, { "start", cmd_start}, @@ -83,6 +84,7 @@ static struct cmd_struct commands[] = { { "load", cmd_load}, { "track", cmd_track}, { "untrack", cmd_untrack}, + { "metadata", cmd_metadata}, { NULL, NULL} /* Array closure */ }; @@ -119,6 +121,7 @@ static void usage(FILE *ofp) fprintf(ofp, " set-session Set current session name\n"); fprintf(ofp, " snapshot Snapshot buffers of current session name\n"); fprintf(ofp, " start Start tracing\n"); + fprintf(ofp, " status Show current session's details\n"); fprintf(ofp, " stop Stop tracing\n"); fprintf(ofp, " version Show version information\n"); fprintf(ofp, " view Start trace viewer\n"); @@ -126,6 +129,7 @@ static void usage(FILE *ofp) fprintf(ofp, " load Load session configuration\n"); fprintf(ofp, " track Track specific system resources\n"); fprintf(ofp, " untrack Untrack specific system resources\n"); + fprintf(ofp, " metadata Regenerate the metadata of a session\n"); fprintf(ofp, "\n"); fprintf(ofp, "Each command also has its own -h, --help option.\n"); fprintf(ofp, "\n"); @@ -392,7 +396,7 @@ static int parse_args(int argc, char **argv) ERR("Command error"); break; case CMD_UNDEFINED: - ERR("Undefined command"); + ERR("Undefined command or invalid arguments"); break; case CMD_FATAL: ERR("Fatal error");