Cygwin: Introduce new LTTNG_UST_STREAM_PIPE command to open wakeup pipe
[lttng-ust.git] / liblttng-ust / lttng-ust-abi.c
index 435763d7e4e6f5f2ffd6754c15be1439f65f41f8..c0e089d0022b5362dc44b477c5349bdb08d553dd 100644 (file)
@@ -418,7 +418,9 @@ int lttng_abi_create_channel(int session_objd,
                                  chan_param->switch_timer_interval,
                                  chan_param->read_timer_interval,
                                  &uargs->channel.shm_fd,
+                                 &uargs->channel.shm_path,
                                  &uargs->channel.wait_fd,
+                                 &uargs->channel.wait_pipe_path,
                                  &uargs->channel.memory_map_size,
                                  &chan_priv_init);
        if (!chan) {
@@ -617,9 +619,9 @@ int lttng_abi_open_stream(int channel_objd, struct lttng_ust_stream *info,
        int stream_objd, ret;
 
        buf = channel->ops->buffer_read_open(channel->chan, channel->handle,
-                       &uargs->stream.shm_fd,
-                       &uargs->stream.wait_fd,
-                       &uargs->stream.memory_map_size);
+                    &uargs->stream.shm_fd, &uargs->stream.shm_path,
+                    &uargs->stream.wait_fd, &uargs->stream.wait_pipe_path,
+                    &uargs->stream.memory_map_size);
        if (!buf)
                return -ENOENT;
 
@@ -781,6 +783,8 @@ long lttng_channel_cmd(int objd, unsigned int cmd, unsigned long arg,
                return ltt_channel_disable(channel);
        case LTTNG_UST_FLUSH_BUFFER:
                return channel->ops->flush_buffer(channel->chan, channel->handle);
+       case LTTNG_UST_STREAM_PIPE:
+               return channel->ops->channel_open_pipe(channel->chan, channel->handle);
        default:
                return -EINVAL;
        }
@@ -817,6 +821,8 @@ long lttng_metadata_cmd(int objd, unsigned int cmd, unsigned long arg,
        }
        case LTTNG_UST_FLUSH_BUFFER:
                return channel->ops->flush_buffer(channel->chan, channel->handle);
+       case LTTNG_UST_STREAM_PIPE:
+               return channel->ops->channel_open_pipe(channel->chan, channel->handle);
        default:
                return -EINVAL;
        }
This page took 0.023967 seconds and 4 git commands to generate.