projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: skip start trace for app that are already started.
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-app.c
diff --git
a/src/bin/lttng-sessiond/ust-app.c
b/src/bin/lttng-sessiond/ust-app.c
index 823de94785c1a6d6964ed9b165f47d4690d59741..63bf4648b5b6f1ade155fdaaa92917515d6814cd 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-app.c
+++ b/
src/bin/lttng-sessiond/ust-app.c
@@
-4347,6
+4347,11
@@
int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app)
goto end;
}
goto end;
}
+ if (ua_sess->enabled) {
+ pthread_mutex_unlock(&ua_sess->lock);
+ goto end;
+ }
+
/* Upon restart, we skip the setup, already done */
if (ua_sess->started) {
goto skip_setup;
/* Upon restart, we skip the setup, already done */
if (ua_sess->started) {
goto skip_setup;
@@
-4387,6
+4392,7
@@
skip_setup:
/* Indicate that the session has been started once */
ua_sess->started = 1;
/* Indicate that the session has been started once */
ua_sess->started = 1;
+ ua_sess->enabled = 1;
pthread_mutex_unlock(&ua_sess->lock);
pthread_mutex_unlock(&ua_sess->lock);
@@
-4476,6
+4482,7
@@
int ust_app_stop_trace(struct ltt_ust_session *usess, struct ust_app *app)
}
health_code_update();
}
health_code_update();
+ ua_sess->enabled = 0;
/* Quiescent wait after stopping trace */
pthread_mutex_lock(&app->sock_lock);
/* Quiescent wait after stopping trace */
pthread_mutex_lock(&app->sock_lock);
This page took
0.025803 seconds
and
4
git commands to generate.