X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.h;h=67c09692f33ddc72d76b6fbea665b8bf97bdee73;hp=d7fbcd5d0ee4378355e0b5492fe894e3e252c7aa;hb=e0c7ec2b3d96dd7ddd9375c5f72239a733d0cf24;hpb=d8e76ef6aa9d28ff287ec6d201c6e2be37181554 diff --git a/src/bin/lttng-sessiond/ust-app.h b/src/bin/lttng-sessiond/ust-app.h index d7fbcd5d0..67c09692f 100644 --- a/src/bin/lttng-sessiond/ust-app.h +++ b/src/bin/lttng-sessiond/ust-app.h @@ -23,6 +23,9 @@ #include "trace-ust.h" +/* lttng-ust supported version. */ +#define UST_APP_MAJOR_VERSION 1 + #define UST_APP_EVENT_LIST_SIZE 32 extern int ust_consumerd64_fd, ust_consumerd32_fd; @@ -107,6 +110,10 @@ struct ust_app { uid_t uid; /* User ID that owns the apps */ gid_t gid; /* Group ID that owns the apps */ int bits_per_long; + int compatible; /* If the lttng-ust tracer version does not match the + supported version of the session daemon, this flag is + set to 0 (NOT compatible) else 1. */ + struct lttng_ust_tracer_version version; uint32_t v_major; /* Verion major number */ uint32_t v_minor; /* Verion minor number */ char name[17]; /* Process name (short) */ @@ -165,6 +172,7 @@ void ust_app_clean_list(void); void ust_app_ht_alloc(void); struct lttng_ht *ust_app_get_ht(void); struct ust_app *ust_app_find_by_pid(pid_t pid); +int ust_app_validate_version(int sock); #else /* HAVE_LIBLTTNG_UST_CTL */ @@ -320,6 +328,11 @@ int ust_app_disable_event_pid(struct ltt_ust_session *usess, { return 0; } +static inline +int ust_app_validate_version(int sock) +{ + return 0; +} #endif /* HAVE_LIBLTTNG_UST_CTL */