projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mi version command: add commit version to mi version
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
start.c
diff --git
a/src/bin/lttng/commands/start.c
b/src/bin/lttng/commands/start.c
index 44554fb37e223d11f62cb0d0f7bce33e096f79f2..82b3f5f867923dc1c16eaa7eff158331d4f5dc99 100644
(file)
--- a/
src/bin/lttng/commands/start.c
+++ b/
src/bin/lttng/commands/start.c
@@
-47,11
+47,12
@@
static struct poptOption long_options[] = {
*/
static void usage(FILE *ofp)
{
*/
static void usage(FILE *ofp)
{
- fprintf(ofp, "usage: lttng start [
options] [NAME
]\n");
+ fprintf(ofp, "usage: lttng start [
NAME] [OPTIONS
]\n");
fprintf(ofp, "\n");
fprintf(ofp, "Where NAME is an optional session name. If not specified, lttng will\n");
fprintf(ofp, "get it from the configuration directory (.lttng).\n");
fprintf(ofp, "\n");
fprintf(ofp, "\n");
fprintf(ofp, "Where NAME is an optional session name. If not specified, lttng will\n");
fprintf(ofp, "get it from the configuration directory (.lttng).\n");
fprintf(ofp, "\n");
+ fprintf(ofp, "Options:\n");
fprintf(ofp, " -h, --help Show this help\n");
fprintf(ofp, " --list-options Simple listing of options\n");
fprintf(ofp, "\n");
fprintf(ofp, " -h, --help Show this help\n");
fprintf(ofp, " --list-options Simple listing of options\n");
fprintf(ofp, "\n");
@@
-82,7
+83,7
@@
static int start_tracing(void)
ret = lttng_start_tracing(session_name);
if (ret < 0) {
switch (-ret) {
ret = lttng_start_tracing(session_name);
if (ret < 0) {
switch (-ret) {
- case LTT
COMM
_TRACE_ALREADY_STARTED:
+ case LTT
NG_ERR
_TRACE_ALREADY_STARTED:
WARN("Tracing already started for session %s", session_name);
break;
default:
WARN("Tracing already started for session %s", session_name);
break;
default:
@@
-117,6
+118,13
@@
int cmd_start(int argc, const char **argv)
pc = poptGetContext(NULL, argc, argv, long_options, 0);
poptReadDefaultConfig(pc, 0);
pc = poptGetContext(NULL, argc, argv, long_options, 0);
poptReadDefaultConfig(pc, 0);
+ /* TODO: mi support */
+ if (lttng_opt_mi) {
+ ret = -LTTNG_ERR_MI_NOT_IMPLEMENTED;
+ ERR("mi option not supported");
+ goto end;
+ }
+
while ((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
case OPT_HELP:
while ((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
case OPT_HELP:
This page took
0.024436 seconds
and
4
git commands to generate.