Remove dependency on libuuid
authorDavid Goulet <david.goulet@polymtl.ca>
Fri, 15 Jul 2011 20:22:13 +0000 (16:22 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Fri, 15 Jul 2011 20:23:46 +0000 (16:23 -0400)
The session name is unique across all sessions so no need to use UUIDs
from libuuid anymore.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
README
configure.ac
ltt-sessiond/session.c
ltt-sessiond/session.h

diff --git a/README b/README
index a9b6dcb8c0b82ac92d47a42b669e59094b31195e..af6e8648895afcf7d68c9f6e74c1d4adf390ca59 100644 (file)
--- a/README
+++ b/README
@@ -10,13 +10,6 @@ Latest development can be found at:
 
 PREREQUISITES:
 
-       - libuuid
-         Universally unique id library - headers and static libraries libuuid
-         generates and parses 128-bit universally unique ids (UUIDs). See RFC
-         4122 for more information.
-
-         * Debian/Ubuntu package: uuid-dev
-
        - liburcu
          Userspace RCU library, by Mathieu Desnoyers and Paul E. McKenney
          
index be7a328f63269ed8a8a37c7129b57022ed1b2949..b7597be8449668a3d9e6198923acf97d6d8e24d4 100644 (file)
@@ -20,11 +20,6 @@ AC_CHECK_LIB([popt], [poptGetContext], [],
        [AC_MSG_ERROR([Cannot find libpopt. Use [LDFLAGS]=-Ldir to specify its location.])]
 )
 
-# Check libuuid
-AC_CHECK_LIB([uuid], [uuid_generate], [],
-       [AC_MSG_ERROR([Cannot find libuuid. Use [LDFLAGS]=-Ldir to specify its location.])]
-)
-
 # Check liburcu
 AC_CHECK_DECL([cds_list_add], [],
        [AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include <urcu/list.h>]]
index be820ee552dace6d6c5df188b8d8dee9e2c63681..f355303365590dc467ccc94f069f348527fc6f32 100644 (file)
@@ -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, &ltt_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.
index 1e274b41103f4f278954beab41d357191db367f0..5845878cbb29533a484c8152d4fcc5eee0344c5f 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <lttng/lttng.h>
 #include <urcu/list.h>
-#include <uuid/uuid.h>
 
 /* Global session list */
 struct ltt_session_list {
@@ -37,7 +36,6 @@ struct ltt_session {
        struct cds_list_head list;
        char *name;
        char *path;
-       uuid_t uuid;
        struct cds_list_head ust_traces;
        struct ltt_kernel_session *kernel_session;
        unsigned int ust_trace_count;
@@ -49,7 +47,6 @@ struct ltt_session {
 int create_session(char *name, char *path);
 int destroy_session(char *name);
 void get_lttng_session(struct lttng_session *sessions);
-struct ltt_session *find_session_by_uuid(uuid_t session_id);
 struct ltt_session *find_session_by_name(char *name);
 unsigned int get_session_count(void);
 struct ltt_session_list *get_session_list(void);
This page took 0.026919 seconds and 4 git commands to generate.