X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fbackend_internal.h;h=f0a66d46de69acac2265408751b5d73bf9053f55;hb=65c48d6a4b532436c000f8b3b9b771cfe9c07491;hp=538176142bbdd462868217ceb4b0963eb284226f;hpb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;p=lttng-ust.git diff --git a/libringbuffer/backend_internal.h b/libringbuffer/backend_internal.h index 53817614..f0a66d46 100644 --- a/libringbuffer/backend_internal.h +++ b/libringbuffer/backend_internal.h @@ -23,28 +23,44 @@ /* Ring buffer and channel backend create/free */ +__attribute__((visibility("hidden"))) int lib_ring_buffer_backend_create(struct lttng_ust_lib_ring_buffer_backend *bufb, struct channel_backend *chan, int cpu, struct lttng_ust_shm_handle *handle, struct shm_object *shmobj); + +__attribute__((visibility("hidden"))) void channel_backend_unregister_notifiers(struct channel_backend *chanb); + +__attribute__((visibility("hidden"))) void lib_ring_buffer_backend_free(struct lttng_ust_lib_ring_buffer_backend *bufb); + +__attribute__((visibility("hidden"))) int channel_backend_init(struct channel_backend *chanb, const char *name, const struct lttng_ust_lib_ring_buffer_config *config, size_t subbuf_size, size_t num_subbuf, struct lttng_ust_shm_handle *handle, const int *stream_fds); + +__attribute__((visibility("hidden"))) void channel_backend_free(struct channel_backend *chanb, struct lttng_ust_shm_handle *handle); +__attribute__((visibility("hidden"))) void lib_ring_buffer_backend_reset(struct lttng_ust_lib_ring_buffer_backend *bufb, struct lttng_ust_shm_handle *handle); + +__attribute__((visibility("hidden"))) void channel_backend_reset(struct channel_backend *chanb); +__attribute__((visibility("hidden"))) int lib_ring_buffer_backend_init(void); + +__attribute__((visibility("hidden"))) void lib_ring_buffer_backend_exit(void); +__attribute__((visibility("hidden"))) extern void _lib_ring_buffer_write(struct lttng_ust_lib_ring_buffer_backend *bufb, size_t offset, const void *src, size_t len, ssize_t pagecpy); @@ -225,9 +241,6 @@ struct lttng_ust_lib_ring_buffer_backend_pages * lib_ring_buffer_get_backend_pages_from_ctx(const struct lttng_ust_lib_ring_buffer_config *config, struct lttng_ust_lib_ring_buffer_ctx *ctx) { - if (caa_unlikely(ctx->ctx_len - < sizeof(struct lttng_ust_lib_ring_buffer_ctx))) - return NULL; return ctx->backend_pages; }