Move struct ltt_channel to shm for consumer flush
[lttng-ust.git] / liblttng-ust / lttng-ust-abi.c
index 6d17c2005dd2999a02ab20f382b0dd525761ef31..639165eb3b21ad6a8606d7f3c0e720945f652d04 100644 (file)
@@ -419,9 +419,10 @@ int lttng_abi_create_channel(int session_objd,
                session->metadata = chan;
                lttng_metadata_create_events(chan_objd);
        }
-
        /* The channel created holds a reference on the session */
        objd_ref(session_objd);
+       /* Copy of session UUID for consumer (availability through shm) */
+       memcpy(chan->uuid, session->uuid, sizeof(session->uuid));
 
        return chan_objd;
 
This page took 0.023025 seconds and 4 git commands to generate.