Fix UST channel/stream output assignation
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index 354a0424e3d27993f87b90d24352c5cad21f19c2..5b05d9f6b6d4e9d9b0c588700def21dc5fa06cfe 100644 (file)
@@ -487,6 +487,17 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                        goto end_nosignal;
                }
                new_channel->nb_init_stream_left = msg.u.channel.nb_init_streams;
+               switch (msg.u.channel.output) {
+               case LTTNG_EVENT_SPLICE:
+                       new_channel->output = CONSUMER_CHANNEL_SPLICE;
+                       break;
+               case LTTNG_EVENT_MMAP:
+                       new_channel->output = CONSUMER_CHANNEL_MMAP;
+                       break;
+               default:
+                       ERR("Channel output unknown %d", msg.u.channel.output);
+                       goto end_nosignal;
+               }
 
                /* Translate and save channel type. */
                switch (msg.u.channel.type) {
This page took 0.023886 seconds and 4 git commands to generate.