From: Mathieu Desnoyers Date: Thu, 3 Nov 2011 19:18:04 +0000 (-0400) Subject: consumer handling fix: send metadata channel shm size X-Git-Tag: v2.0-pre15~161 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3ee75e9ca210a47f45b2ba45550924c84c528265;p=lttng-tools.git consumer handling fix: send metadata channel shm size Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-sessiond/ust-consumer.c b/lttng-sessiond/ust-consumer.c index 9a4c47d83..1e583839e 100644 --- a/lttng-sessiond/ust-consumer.c +++ b/lttng-sessiond/ust-consumer.c @@ -134,7 +134,7 @@ int ust_consumer_send_session(int consumer_fd, struct ust_app_session *usess) lum.cmd_type = LTTNG_CONSUMER_ADD_CHANNEL; lum.u.channel.channel_key = usess->metadata->obj->shm_fd; lum.u.channel.max_sb_size = usess->metadata->attr.subbuf_size; - lum.u.channel.mmap_len = 0; /* for kernel */ + lum.u.channel.mmap_len = usess->metadata->obj->memory_map_size; DBG("Sending metadata channel %d to consumer", lum.u.channel.channel_key); ret = lttcomm_send_unix_sock(sock, &lum, sizeof(lum)); if (ret < 0) {