From: Mathieu Desnoyers Date: Mon, 22 Aug 2011 01:12:30 +0000 (-0400) Subject: Add major/minor version in libust registration X-Git-Tag: v1.9.1~286 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e44418f335214af06b470508cac81532ee437dc9;p=lttng-ust.git Add major/minor version in libust registration Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng-sessiond-comm.h b/include/lttng-sessiond-comm.h index 67c114e6..71a1dd64 100644 --- a/include/lttng-sessiond-comm.h +++ b/include/lttng-sessiond-comm.h @@ -40,6 +40,9 @@ /* Queue size of listen(2) */ #define MAX_LISTEN 10 +#define LTTNG_UST_COMM_VERSION_MAJOR 0 +#define LTTNG_UST_COMM_VERSION_MINOR 1 + /* Get the error code index from 0 since * LTTCOMM_OK start at 1000 */ diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 5aaf29e9..e73d324d 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -54,10 +54,14 @@ int register_app_to_sessiond(int socket) { ssize_t ret; struct { + uint32_t major; + uint32_t minor; pid_t pid; uid_t uid; } reg_msg; + reg_msg.major = LTTNG_UST_COMM_VERSION_MAJOR; + reg_msg.minor = LTTNG_UST_COMM_VERSION_MINOR; reg_msg.pid = getpid(); reg_msg.uid = getuid();