X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-registry.h;h=b51b505f12994b0b8219b4efb846f32e2f5f5523;hb=4586339794f1139978f2b982d8124e3f5c6bb28e;hp=0cba8a334e54609df98d5e615662d68a73654c70;hpb=dc2bbdaea73908117fdccc5e8247b613bd3b8600;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-registry.h b/src/bin/lttng-sessiond/ust-registry.h index 0cba8a334..b51b505f1 100644 --- a/src/bin/lttng-sessiond/ust-registry.h +++ b/src/bin/lttng-sessiond/ust-registry.h @@ -66,6 +66,12 @@ struct ust_registry_session { size_t metadata_len, metadata_alloc_len; /* Length of bytes sent to the consumer. */ size_t metadata_len_sent; + + char root_shm_path[PATH_MAX]; + char shm_path[PATH_MAX]; + char metadata_path[PATH_MAX]; + int metadata_fd; /* file-backed metadata FD */ + /* * Hash table containing channels sent by the UST tracer. MUST * be accessed with a RCU read side lock acquired. @@ -81,6 +87,10 @@ struct ust_registry_session { * deletes its sessions. */ unsigned int metadata_closed; + + /* User and group owning the session. */ + uid_t uid; + gid_t gid; }; struct ust_registry_channel { @@ -129,7 +139,7 @@ struct ust_registry_event { /* Name of the event returned by the tracer. */ char name[LTTNG_UST_SYM_NAME_LEN]; char *signature; - int loglevel; + int loglevel_value; size_t nr_fields; struct ustctl_field *fields; char *model_emf_uri; @@ -225,14 +235,18 @@ int ust_registry_session_init(struct ust_registry_session **sessionp, uint32_t long_alignment, int byte_order, uint32_t major, - uint32_t minor); + uint32_t minor, + const char *root_shm_path, + const char *shm_path, + uid_t euid, + gid_t egid); void ust_registry_session_destroy(struct ust_registry_session *session); int ust_registry_create_event(struct ust_registry_session *session, uint64_t chan_key, int session_objd, int channel_objd, char *name, - char *sig, size_t nr_fields, struct ustctl_field *fields, int loglevel, - char *model_emf_uri, int buffer_type, uint32_t *event_id_p, - struct ust_app *app); + char *sig, size_t nr_fields, struct ustctl_field *fields, + int loglevel_value, char *model_emf_uri, int buffer_type, + uint32_t *event_id_p, struct ust_app *app); struct ust_registry_event *ust_registry_find_event( struct ust_registry_channel *chan, char *name, char *sig); void ust_registry_destroy_event(struct ust_registry_channel *chan, @@ -288,8 +302,9 @@ void ust_registry_session_destroy(struct ust_registry_session *session) static inline int ust_registry_create_event(struct ust_registry_session *session, uint64_t chan_key, int session_objd, int channel_objd, char *name, - char *sig, size_t nr_fields, struct ustctl_field *fields, int loglevel, - char *model_emf_uri, int buffer_type, uint32_t *event_id_p) + char *sig, size_t nr_fields, struct ustctl_field *fields, + int loglevel_value, char *model_emf_uri, int buffer_type, + uint32_t *event_id_p) { return 0; }