X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftrace-ust.h;h=63564ff71f296e3eed9c7ec7159c590db78cb076;hb=d7ba13889c8692b14f99238ddf2721ed78df89d2;hp=d58e37121696e3a4fda50fe0990316de7950229b;hpb=022d91ba14053d6093a6d6a1af02a345c6fd42d2;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/trace-ust.h b/src/bin/lttng-sessiond/trace-ust.h index d58e37121..63564ff71 100644 --- a/src/bin/lttng-sessiond/trace-ust.h +++ b/src/bin/lttng-sessiond/trace-ust.h @@ -78,7 +78,8 @@ struct ltt_ust_domain_global { struct ltt_ust_session { uint64_t id; /* Unique identifier of session */ struct ltt_ust_domain_global domain_global; - struct agent agent; + /* Hash table of agent indexed by agent domain. */ + struct lttng_ht *agents; /* UID/GID of the user owning the session */ uid_t uid; gid_t gid; @@ -112,6 +113,11 @@ struct ltt_ust_session { /* Metadata channel attributes. */ struct lttng_ust_channel_attr metadata_attr; + + /* + * Path where to keep the shared memory files. + */ + char shm_path[PATH_MAX]; }; /* @@ -157,6 +163,8 @@ struct ltt_ust_event *trace_ust_find_event(struct lttng_ht *ht, struct lttng_event_exclusion *exclusion); struct ltt_ust_channel *trace_ust_find_channel_by_name(struct lttng_ht *ht, char *name); +struct agent *trace_ust_find_agent(struct ltt_ust_session *session, + enum lttng_domain_type domain_type); /* * Create functions malloc() the data structure. @@ -257,6 +265,12 @@ void trace_ust_delete_channel(struct lttng_ht *ht, { return; } +static inline +struct agent *trace_ust_find_agent(struct ltt_ust_session *session, + enum lttng_domain_type domain_type) +{ + return NULL; +} #endif /* HAVE_LIBLTTNG_UST_CTL */