Add field alignment support
[lttng-modules.git] / lib / ringbuffer / config.h
index 5a9f8962070e49af5884bdb2e0478e9f5bdc07ba..fd73d5519c92589ebb7e02945eb65f06256d1f8f 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <linux/types.h>
 #include <linux/percpu.h>
+#include "../align.h"
 
 struct lib_ring_buffer;
 struct channel;
@@ -33,9 +34,7 @@ struct lib_ring_buffer_client_cb {
        u64 (*ring_buffer_clock_read) (struct channel *chan);
        size_t (*record_header_size) (const struct lib_ring_buffer_config *config,
                                      struct channel *chan, size_t offset,
-                                     size_t data_size,
                                      size_t *pre_header_padding,
-                                     unsigned int rflags,
                                      struct lib_ring_buffer_ctx *ctx);
 
        /* Slow path only, at subbuffer switch */
@@ -210,6 +209,7 @@ void lib_ring_buffer_ctx_init(struct lib_ring_buffer_ctx *ctx,
        ctx->data_size = data_size;
        ctx->largest_align = largest_align;
        ctx->cpu = cpu;
+       ctx->rflags = 0;
 }
 
 /*
This page took 0.023798 seconds and 4 git commands to generate.