X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-registry.h;h=34db29ea13462ec477f47ae4e8d55646f68a19b2;hp=a8466ebf58c64c9260968e77a8e0573925f9b959;hb=93ec662e687dc15a3601704a1e0c96c51ad228c9;hpb=10b56aefc3e1de5cee607994f64c3b8a7d85c391 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 {