X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ltt-sessiond%2Fsession.c;h=92111ffed981cc5f2593bc0770efc8c5f8e893aa;hb=7a485870536daad1f6c5aeb1ae18783a8862cbee;hp=be820ee552dace6d6c5df188b8d8dee9e2c63681;hpb=b082db07f0c522527fc95fc97f3e99eb0579c0cc;p=lttng-tools.git diff --git a/ltt-sessiond/session.c b/ltt-sessiond/session.c index be820ee55..92111ffed 100644 --- a/ltt-sessiond/session.c +++ b/ltt-sessiond/session.c @@ -83,35 +83,6 @@ static void del_session_list(struct ltt_session *ls) } } -/* - * find_session_by_uuid - * - * Return a ltt_session structure ptr that matches the uuid. - */ -struct ltt_session *find_session_by_uuid(uuid_t session_id) -{ - int found = 0; - struct ltt_session *iter; - - /* Sanity check for NULL session_id */ - if (uuid_is_null(session_id)) { - goto end; - } - - cds_list_for_each_entry(iter, <t_session_list.head, list) { - if (uuid_compare(iter->uuid, session_id) == 0) { - found = 1; - break; - } - } - -end: - if (!found) { - iter = NULL; - } - return iter; -} - /* * find_session_by_name * @@ -223,9 +194,6 @@ int create_session(char *name, char *path) goto error; } - /* UUID generation */ - uuid_generate(new_session->uuid); - /* * Set consumer (identifier) to 0. This means that there is * NO consumer attach to that session yet. @@ -234,7 +202,6 @@ int create_session(char *name, char *path) /* Init kernel session */ new_session->kernel_session = NULL; - new_session->kern_session_count = 0; /* Init list */ CDS_INIT_LIST_HEAD(&new_session->ust_traces);