#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;
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) */
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 */
{
return 0;
}
+static inline
+int ust_app_validate_version(int sock)
+{
+ return 0;
+}
#endif /* HAVE_LIBLTTNG_UST_CTL */