From 3ee75e9ca210a47f45b2ba45550924c84c528265 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 3 Nov 2011 15:18:04 -0400 Subject: [PATCH] consumer handling fix: send metadata channel shm size Signed-off-by: Mathieu Desnoyers --- lttng-sessiond/ust-consumer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1