projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add create session snapshot API in lttng-sessiond
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
snapshot.c
diff --git
a/src/bin/lttng/commands/snapshot.c
b/src/bin/lttng/commands/snapshot.c
index 866b55a38549c3e0cc41cc179a9b3b2ae4d089a2..0c15dbb70fa5f6b8f2adb8f314d9db4b4b773432 100644
(file)
--- a/
src/bin/lttng/commands/snapshot.c
+++ b/
src/bin/lttng/commands/snapshot.c
@@
-343,11
+343,10
@@
static int record(const char *url)
} else if (opt_ctrl_url) {
MSG("Snapshot written to ctrl: %s, data: %s", opt_ctrl_url,
opt_data_url);
} else if (opt_ctrl_url) {
MSG("Snapshot written to ctrl: %s, data: %s", opt_ctrl_url,
opt_data_url);
- } else {
- MSG("Snapshot written in session directory.");
}
error:
}
error:
+ lttng_snapshot_output_destroy(output);
return ret;
}
return ret;
}
@@
-460,6
+459,9
@@
int cmd_snapshot(int argc, const char **argv)
ret = handle_command(poptGetArgs(pc));
if (ret < 0) {
ret = handle_command(poptGetArgs(pc));
if (ret < 0) {
+ if (ret == -LTTNG_ERR_EPERM) {
+ ERR("The session needs to be set in no output mode (--no-output)");
+ }
ERR("%s", lttng_strerror(ret));
goto end;
}
ERR("%s", lttng_strerror(ret));
goto end;
}
This page took
0.025576 seconds
and
5
git commands to generate.