X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Ftrace-ust.h;h=c033ed6c57c7959f3f2836a8d1e039032f6fff2f;hp=bb092cae56158d98a10dfc623f15532c4ba80845;hb=bec399405a4667411ae06bbbcbed678e42e93a30;hpb=67cea2c94b841ee9b38ba80ab8a9eafff5f76408 diff --git a/lttng-sessiond/trace-ust.h b/lttng-sessiond/trace-ust.h index bb092cae5..c033ed6c5 100644 --- a/lttng-sessiond/trace-ust.h +++ b/lttng-sessiond/trace-ust.h @@ -23,12 +23,12 @@ #include #include #include + #include +#include #include "ust-ctl.h" -#include "../common/hashtable.h" - /* UST Stream list */ struct ltt_ust_stream_list { unsigned int count; @@ -38,15 +38,15 @@ struct ltt_ust_stream_list { /* Context hash table nodes */ struct ltt_ust_context { struct lttng_ust_context ctx; - struct cds_lfht_node node; + struct lttng_ht_node_ulong node; }; /* UST event */ struct ltt_ust_event { unsigned int enabled; struct lttng_ust_event attr; - struct cds_lfht *ctx; - struct cds_lfht_node node; + struct lttng_ht *ctx; + struct lttng_ht_node_str node; }; /* UST stream */ @@ -64,9 +64,9 @@ struct ltt_ust_channel { char name[LTTNG_UST_SYM_NAME_LEN]; char pathname[PATH_MAX]; struct lttng_ust_channel attr; - struct cds_lfht *ctx; - struct cds_lfht *events; - struct cds_lfht_node node; + struct lttng_ht *ctx; + struct lttng_ht *events; + struct lttng_ht_node_str node; }; /* UST Metadata */ @@ -80,21 +80,21 @@ struct ltt_ust_metadata { /* UST domain global (LTTNG_DOMAIN_UST) */ struct ltt_ust_domain_global { - struct cds_lfht *channels; + struct lttng_ht *channels; }; /* UST domain pid (LTTNG_DOMAIN_UST_PID) */ struct ltt_ust_domain_pid { pid_t pid; - struct cds_lfht *channels; - struct cds_lfht_node node; + struct lttng_ht *channels; + struct lttng_ht_node_ulong node; }; /* UST domain exec name (LTTNG_DOMAIN_UST_EXEC_NAME) */ struct ltt_ust_domain_exec { char exec_name[LTTNG_UST_SYM_NAME_LEN]; - struct cds_lfht *channels; - struct cds_lfht_node node; + struct lttng_ht *channels; + struct lttng_ht_node_str node; }; /* UST session */ @@ -108,8 +108,8 @@ struct ltt_ust_session { * contains a HT of channels. See ltt_ust_domain_exec and * ltt_ust_domain_pid data structures. */ - struct cds_lfht *domain_pid; - struct cds_lfht *domain_exec; + struct lttng_ht *domain_pid; + struct lttng_ht *domain_exec; /* UID/GID of the user owning the session */ uid_t uid; gid_t gid; @@ -120,9 +120,9 @@ struct ltt_ust_session { /* * Lookup functions. NULL is returned if not found. */ -struct ltt_ust_event *trace_ust_find_event_by_name(struct cds_lfht *ht, +struct ltt_ust_event *trace_ust_find_event_by_name(struct lttng_ht *ht, char *name); -struct ltt_ust_channel *trace_ust_find_channel_by_name(struct cds_lfht *ht, +struct ltt_ust_channel *trace_ust_find_channel_by_name(struct lttng_ht *ht, char *name); /* @@ -149,14 +149,14 @@ void trace_ust_destroy_event(struct ltt_ust_event *event); #else /* HAVE_LIBLTTNG_UST_CTL */ static inline -struct ltt_ust_event *trace_ust_find_event_by_name(struct cds_lfht *ht, +struct ltt_ust_event *trace_ust_find_event_by_name(struct lttng_ht *ht, char *name) { return NULL; } static inline -struct ltt_ust_channel *trace_ust_find_channel_by_name(struct cds_lfht *ht, +struct ltt_ust_channel *trace_ust_find_channel_by_name(struct lttng_ht *ht, char *name) { return NULL;