X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Ffrontend.h;h=8c8517086828d1fc5c9cf2bf2c780b8a933fc653;hb=00665d8e072bc581e5a3e93b395bd6e19a4c2fcd;hp=2eda6e945b218c8b557886084202feb4b5151716;hpb=03d2d2938911e2641038313211b08546338953c3;p=lttng-ust.git diff --git a/libringbuffer/frontend.h b/libringbuffer/frontend.h index 2eda6e94..8c851708 100644 --- a/libringbuffer/frontend.h +++ b/libringbuffer/frontend.h @@ -64,7 +64,8 @@ struct lttng_ust_shm_handle *channel_create(const struct lttng_ust_lib_ring_buff void *buf_addr, size_t subbuf_size, size_t num_subbuf, unsigned int switch_timer_interval, - unsigned int read_timer_interval); + unsigned int read_timer_interval, + const int *stream_fds, int nr_stream_fds); /* * channel_destroy finalizes all channel's buffers, waits for readers to @@ -94,12 +95,20 @@ extern struct lttng_ust_lib_ring_buffer *channel_get_ring_buffer( int *wakeup_fd, uint64_t *memory_map_size); extern -int ring_buffer_close_wait_fd(const struct lttng_ust_lib_ring_buffer_config *config, +int ring_buffer_channel_close_wait_fd(const struct lttng_ust_lib_ring_buffer_config *config, + struct channel *chan, + struct lttng_ust_shm_handle *handle); +extern +int ring_buffer_channel_close_wakeup_fd(const struct lttng_ust_lib_ring_buffer_config *config, + struct channel *chan, + struct lttng_ust_shm_handle *handle); +extern +int ring_buffer_stream_close_wait_fd(const struct lttng_ust_lib_ring_buffer_config *config, struct channel *chan, struct lttng_ust_shm_handle *handle, int cpu); extern -int ring_buffer_close_wakeup_fd(const struct lttng_ust_lib_ring_buffer_config *config, +int ring_buffer_stream_close_wakeup_fd(const struct lttng_ust_lib_ring_buffer_config *config, struct channel *chan, struct lttng_ust_shm_handle *handle, int cpu);