projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: take session list lock when listing tp
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index 0fb80fa44cb7e07477a3d61527fedc169fe5d776..34f322294f0b543d95a527b6f71016bc69cb5a7e 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-2922,7
+2922,9
@@
skip_domain:
struct lttng_event *events;
ssize_t nb_events;
struct lttng_event *events;
ssize_t nb_events;
+ session_lock_list();
nb_events = cmd_list_tracepoints(cmd_ctx->lsm->domain.type, &events);
nb_events = cmd_list_tracepoints(cmd_ctx->lsm->domain.type, &events);
+ session_unlock_list();
if (nb_events < 0) {
/* Return value is a negative lttng_error_code. */
ret = -nb_events;
if (nb_events < 0) {
/* Return value is a negative lttng_error_code. */
ret = -nb_events;
@@
-2953,8
+2955,10
@@
skip_domain:
struct lttng_event_field *fields;
ssize_t nb_fields;
struct lttng_event_field *fields;
ssize_t nb_fields;
+ session_lock_list();
nb_fields = cmd_list_tracepoint_fields(cmd_ctx->lsm->domain.type,
&fields);
nb_fields = cmd_list_tracepoint_fields(cmd_ctx->lsm->domain.type,
&fields);
+ session_unlock_list();
if (nb_fields < 0) {
/* Return value is a negative lttng_error_code. */
ret = -nb_fields;
if (nb_fields < 0) {
/* Return value is a negative lttng_error_code. */
ret = -nb_fields;
This page took
0.041257 seconds
and
4
git commands to generate.