projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change easter egg MSG to DBG
[lttng-tools.git]
/
lttng-sessiond
/
session.c
diff --git
a/lttng-sessiond/session.c
b/lttng-sessiond/session.c
index 2ab49485f738a9d3c45df96ba91baed4a397794b..bf16f76cba40a9cfeb7a71ef7e6c8cbaa30ec439 100644
(file)
--- a/
lttng-sessiond/session.c
+++ b/
lttng-sessiond/session.c
@@
-55,11
+55,12
@@
static struct ltt_session_list ltt_session_list = {
* Add a ltt_session structure to the global list.
*
* The caller MUST acquire the session list lock before.
* Add a ltt_session structure to the global list.
*
* The caller MUST acquire the session list lock before.
+ * Returns the unique identifier for the session.
*/
*/
-static
void
add_session_list(struct ltt_session *ls)
+static
int
add_session_list(struct ltt_session *ls)
{
cds_list_add(&ls->list, <t_session_list.head);
{
cds_list_add(&ls->list, <t_session_list.head);
-
ltt_session_list.count++
;
+
return ++ltt_session_list.count
;
}
/*
}
/*
@@
-215,10
+216,10
@@
int session_create(char *name, char *path)
/* Add new session to the session list */
session_lock_list();
/* Add new session to the session list */
session_lock_list();
- add_session_list(new_session);
+
new_session->uid =
add_session_list(new_session);
session_unlock_list();
session_unlock_list();
- DBG("Tracing session %s created in %s
", name, path
);
+ DBG("Tracing session %s created in %s
with UID %d", name, path, new_session->uid
);
return LTTCOMM_OK;
return LTTCOMM_OK;
This page took
0.023205 seconds
and
4
git commands to generate.