projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add auto start UST trace support
[lttng-tools.git]
/
lttng-sessiond
/
main.c
diff --git
a/lttng-sessiond/main.c
b/lttng-sessiond/main.c
index f13571ab37159fc00d9aac331444eab9cb68db42..40ad9add84747538fe860662f95e5bf19f5a9a18 100644
(file)
--- a/
lttng-sessiond/main.c
+++ b/
lttng-sessiond/main.c
@@
-1718,6
+1718,7
@@
static int create_ust_session(struct ltt_session *session,
/* No ustctl for the global UST domain */
break;
default:
/* No ustctl for the global UST domain */
break;
default:
+ ERR("Unknown UST domain on create session %d", domain->type);
goto error;
}
session->ust_session = lus;
goto error;
}
session->ust_session = lus;
@@
-2433,6
+2434,9
@@
static int cmd_start_trace(struct ltt_session *session)
kernel_wait_quiescent(kernel_tracer_fd);
}
kernel_wait_quiescent(kernel_tracer_fd);
}
+ /* Flag session that trace should start automatically */
+ usess->start_trace = 1;
+
ret = ust_app_start_trace(usess);
if (ret < 0) {
ret = LTTCOMM_UST_START_FAIL;
ret = ust_app_start_trace(usess);
if (ret < 0) {
ret = LTTCOMM_UST_START_FAIL;
This page took
0.02345 seconds
and
4
git commands to generate.