X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-registry.h;h=34db29ea13462ec477f47ae4e8d55646f68a19b2;hb=7c79cc89f4765951545b01d272ef2dc212874086;hp=a8466ebf58c64c9260968e77a8e0573925f9b959;hpb=10b56aefc3e1de5cee607994f64c3b8a7d85c391;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-registry.h b/src/bin/lttng-sessiond/ust-registry.h index a8466ebf5..34db29ea1 100644 --- a/src/bin/lttng-sessiond/ust-registry.h +++ b/src/bin/lttng-sessiond/ust-registry.h @@ -68,6 +68,8 @@ struct ust_registry_session { size_t metadata_len, metadata_alloc_len; /* Length of bytes sent to the consumer. */ size_t metadata_len_sent; + /* Current version of the metadata. */ + uint64_t metadata_version; char root_shm_path[PATH_MAX]; char shm_path[PATH_MAX]; @@ -96,6 +98,13 @@ struct ust_registry_session { /* Enumerations table. */ struct lttng_ht *enums; + + /* + * Copy of the tracer version when the first app is registered. + * It is used if we need to regenerate the metadata. + */ + uint32_t major; + uint32_t minor; }; struct ust_registry_channel {