-/*
- * 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;
-}
-