projects
/
ltt-control.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttctl: wait for lttd to complete in overwrite mode
[ltt-control.git]
/
lttctl
/
lttctl.c
diff --git
a/lttctl/lttctl.c
b/lttctl/lttctl.c
index 3011a96f34c88117f237d89b60f47ab3d4079e5e..afa55b67cc85bede5a51b44692d32a05c542d78c 100644
(file)
--- a/
lttctl/lttctl.c
+++ b/
lttctl/lttctl.c
@@
-696,10
+696,13
@@
setup_trace_fail:
}
/*
}
/*
- * Start a lttd daemon to write trace data
s
+ * Start a lttd daemon to write trace data
* Dump overwrite channels on overwrite!=0
* Dump normal(non-overwrite) channels on overwrite=0
*
* Dump overwrite channels on overwrite!=0
* Dump normal(non-overwrite) channels on overwrite=0
*
+ * When called for overwrite mode, wait for lttd to return, so we are sure that
+ * trace session teardown is not executed before lttd can grab the buffer data.
+ *
* ret: 0 on success
* !0 on fail
*/
* ret: 0 on success
* !0 on fail
*/
@@
-760,8
+763,10
@@
static int lttctl_daemon(int overwrite)
}
/* -d option */
}
/* -d option */
- argv[argc] = "-d";
- argc++;
+ if (!overwrite) {
+ argv[argc] = "-d";
+ argc++;
+ }
/* overwrite option */
if (overwrite) {
/* overwrite option */
if (overwrite) {
This page took
0.022831 seconds
and
4
git commands to generate.