From e44418f335214af06b470508cac81532ee437dc9 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 21 Aug 2011 21:12:30 -0400 Subject: [PATCH] Add major/minor version in libust registration Signed-off-by: Mathieu Desnoyers --- include/lttng-sessiond-comm.h | 3 +++ libust/lttng-ust-comm.c | 4 ++++ 2 files changed, 7 insertions(+) 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(); -- 2.34.1