From c117fb1b82525bd7d455a43c75f726f561863782 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 19 Nov 2011 11:42:42 -0500 Subject: [PATCH] Send bitness upon registration Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-comm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 2f972942..0b53269d 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -166,6 +167,7 @@ int register_app_to_sessiond(int socket) pid_t ppid; uid_t uid; gid_t gid; + uint32_t bits_per_long; char name[16]; /* process name */ } reg_msg; @@ -175,6 +177,7 @@ int register_app_to_sessiond(int socket) reg_msg.ppid = getppid(); reg_msg.uid = getuid(); reg_msg.gid = getgid(); + reg_msg.bits_per_long = CAA_BITS_PER_LONG; prctl_ret = prctl(PR_GET_NAME, (unsigned long) reg_msg.name, 0, 0, 0); if (prctl_ret) { ERR("Error executing prctl"); -- 2.34.1