ring buffer context: cpu number becomes an output of reserve
[lttng-ust.git] / liblttng-ust-ctl / ustctl.c
index 89b566bdccaceade94a553f235a6f1d36f7f0b7a..394e14174f6985bd0798e77c0ef1a99ebc2770a0 100644 (file)
@@ -1354,7 +1354,7 @@ int ustctl_write_metadata_to_channel(
                                lttng_chan_buf->ops->priv->packet_avail_size(lttng_chan_buf->chan, lttng_chan_buf->handle),
                                len - pos);
                lib_ring_buffer_ctx_init(&ctx, lttng_chan_buf->chan, NULL, reserve_len,
-                                        sizeof(char), -1, lttng_chan_buf->handle);
+                                        sizeof(char), lttng_chan_buf->handle);
                /*
                 * We don't care about metadata buffer's records lost
                 * count, because we always retry here. Report error if
@@ -1401,7 +1401,7 @@ ssize_t ustctl_write_one_packet_to_channel(
                        lttng_chan_buf->ops->priv->packet_avail_size(lttng_chan_buf->chan, lttng_chan_buf->handle),
                        len);
        lib_ring_buffer_ctx_init(&ctx, lttng_chan_buf->chan, NULL, reserve_len,
-                       sizeof(char), -1, lttng_chan_buf->handle);
+                       sizeof(char), lttng_chan_buf->handle);
        ret = lttng_chan_buf->ops->event_reserve(&ctx, 0);
        if (ret != 0) {
                DBG("LTTng: event reservation failed");
This page took 0.023619 seconds and 4 git commands to generate.