X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Fconfig.h;h=63189b950faa68fa4e5e348c41f1aba55dcdc098;hb=df388b78db6422e49c9f628a8fa36d60092b35e1;hp=bd5ba77d3ebcd50b7ce17b35c10f4702eb6463fb;hpb=886d51a3d7ed5fa6b41d7f19b3e14ae6c535a44c;p=lttng-modules.git diff --git a/lib/ringbuffer/config.h b/lib/ringbuffer/config.h index bd5ba77d..63189b95 100644 --- a/lib/ringbuffer/config.h +++ b/lib/ringbuffer/config.h @@ -26,7 +26,8 @@ #include #include -#include "../align.h" +#include +#include struct lib_ring_buffer; struct channel; @@ -105,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. @@ -206,7 +207,7 @@ struct lib_ring_buffer_ctx { * @ctx: ring buffer context to initialize * @chan: channel * @priv: client private data - * @data_size: size of record data payload + * @data_size: size of record data payload. It must be greater than 0. * @largest_align: largest alignment within data payload types * @cpu: processor id */ @@ -241,6 +242,10 @@ void lib_ring_buffer_ctx_init(struct lib_ring_buffer_ctx *ctx, #define RING_BUFFER_RFLAG_FULL_TSC (1U << 0) #define RING_BUFFER_RFLAG_END (1U << 1) +#ifndef LTTNG_TRACER_CORE_H +#error "lttng-tracer-core.h is needed for RING_BUFFER_ALIGN define" +#endif + /* * We need to define RING_BUFFER_ALIGN_ATTR so it is known early at * compile-time. We have to duplicate the "config->align" information and the @@ -305,6 +310,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 */