#include <unistd.h>
#include <urcu/compiler.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "ringbuffer-config.h"
#include "backend_types.h"
#include "frontend_types.h"
static inline
int lib_ring_buffer_backend_get_pages(const struct lttng_ust_ring_buffer_config *config,
- struct lttng_ust_ring_buffer_ctx *ctx,
+ const struct lttng_ust_ring_buffer_ctx *ctx,
struct lttng_ust_ring_buffer_backend_pages **backend_pages)
{
struct lttng_ust_ring_buffer_ctx_private *ctx_private = ctx->priv;
struct lttng_ust_ring_buffer_backend_pages *
lib_ring_buffer_get_backend_pages_from_ctx(
const struct lttng_ust_ring_buffer_config *config __attribute__((unused)),
- struct lttng_ust_ring_buffer_ctx *ctx)
+ const struct lttng_ust_ring_buffer_ctx *ctx)
{
return ctx->priv->backend_pages;
}
#ifdef LTTNG_RING_BUFFER_COUNT_EVENTS
static inline
void subbuffer_count_record(const struct lttng_ust_ring_buffer_config *config,
- const struct lttng_ust_ring_buffer_ctx *ctx,
- struct lttng_ust_ring_buffer_backend *bufb,
- unsigned long idx, struct lttng_ust_shm_handle *handle)
+ const struct lttng_ust_ring_buffer_ctx *ctx)
{
struct lttng_ust_ring_buffer_backend_pages *backend_pages;
#else /* LTTNG_RING_BUFFER_COUNT_EVENTS */
static inline
void subbuffer_count_record(const struct lttng_ust_ring_buffer_config *config __attribute__((unused)),
- const struct lttng_ust_ring_buffer_ctx *ctx __attribute__((unused)),
- struct lttng_ust_ring_buffer_backend *bufb __attribute__((unused)),
- unsigned long idx __attribute__((unused)),
- struct lttng_ust_shm_handle *handle __attribute__((unused)))
+ const struct lttng_ust_ring_buffer_ctx *ctx __attribute__((unused)))
{
}
#endif /* #else LTTNG_RING_BUFFER_COUNT_EVENTS */