projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update and fix UST register and session creation
[lttng-tools.git]
/
ltt-sessiond
/
session.c
diff --git
a/ltt-sessiond/session.c
b/ltt-sessiond/session.c
index 118c8f57cb6d2ff14ca5c9656c35cddab7535c4d..1ace823c7143b8d0169feb1f551a9151e75e7fe4 100644
(file)
--- a/
ltt-sessiond/session.c
+++ b/
ltt-sessiond/session.c
@@
-213,21
+213,18
@@
int create_session(char *name, char *path)
/* Init kernel session */
new_session->kernel_session = NULL;
/* Init kernel session */
new_session->kernel_session = NULL;
- /* Init list */
- CDS_INIT_LIST_HEAD(&new_session->ust_
traces
);
+ /* Init
UST session
list */
+ CDS_INIT_LIST_HEAD(&new_session->ust_
session_list.head
);
- /*
Set trace list counter
*/
-
new_session->ust_trace_count = 0
;
+ /*
Init lock
*/
+
pthread_mutex_init(&new_session->lock, NULL)
;
/* Add new session to the session list */
lock_session_list();
add_session_list(new_session);
unlock_session_list();
/* Add new session to the session list */
lock_session_list();
add_session_list(new_session);
unlock_session_list();
- /* Init lock */
- pthread_mutex_init(&new_session->lock, NULL);
-
- DBG("Tracing session %s created in %s", new_session->name, new_session->path);
+ DBG("Tracing session %s created in %s", name, path);
return 0;
return 0;
This page took
0.024764 seconds
and
5
git commands to generate.