X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Fconfig.h;h=60174db63a38687e256b3726e7a83dcd0af47209;hb=85a07c33f3b180d9c1be38832961d0feef66be66;hp=67caba0646acffcfa1b99c354f8f1dc7dccc3980;hpb=3cae7f221dc4fba025901949023238975bb59b78;p=lttng-modules.git diff --git a/lib/ringbuffer/config.h b/lib/ringbuffer/config.h index 67caba06..60174db6 100644 --- a/lib/ringbuffer/config.h +++ b/lib/ringbuffer/config.h @@ -26,8 +26,8 @@ #include #include -#include "../align.h" -#include "../../lttng-tracer-core.h" +#include +#include struct lib_ring_buffer; struct channel; @@ -106,7 +106,7 @@ struct lib_ring_buffer_client_cb { * * wakeup: * - * RING_BUFFER_WAKEUP_BY_TIMER uses per-cpu deferrable timers to poll the + * RING_BUFFER_WAKEUP_BY_TIMER uses per-cpu timers to poll the * buffers and wake up readers if data is ready. Mainly useful for tracers which * don't want to call into the wakeup code on the tracing path. Use in * combination with "read_timer_interval" channel_create() argument. @@ -200,6 +200,8 @@ struct lib_ring_buffer_ctx { */ u64 tsc; /* time-stamp counter value */ unsigned int rflags; /* reservation flags */ + /* Cache backend pages pointer chasing. */ + struct lib_ring_buffer_backend_pages *backend_pages; }; /** @@ -223,6 +225,7 @@ void lib_ring_buffer_ctx_init(struct lib_ring_buffer_ctx *ctx, ctx->largest_align = largest_align; ctx->cpu = cpu; ctx->rflags = 0; + ctx->backend_pages = NULL; } /* @@ -310,6 +313,6 @@ int lib_ring_buffer_check_config(const struct lib_ring_buffer_config *config, return 0; } -#include "../../wrapper/ringbuffer/vatomic.h" +#include #endif /* _LIB_RING_BUFFER_CONFIG_H */