Fix: dma-fence.h appears in Linux 4.10, not 4.9
[lttng-modules.git] / src / lttng-context-vegid.c
index 9c0108241192e79cc567756a363ad9acb96e8671..aa40c40fd1f929443fc614c5dfb46d54e4d6fbb8 100644 (file)
@@ -31,13 +31,12 @@ size_t vegid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size
 static
 void vegid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
                 struct lttng_kernel_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                struct lttng_kernel_channel_buffer *chan)
 {
        gid_t vegid;
 
        vegid = lttng_current_vegid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(vegid));
-       chan->ops->event_write(ctx, &vegid, sizeof(vegid));
+       chan->ops->event_write(ctx, &vegid, sizeof(vegid), lttng_alignof(vegid));
 }
 
 static
@@ -51,7 +50,7 @@ void vegid_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("vegid",
                lttng_kernel_static_type_integer_from_type(gid_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        vegid_get_size,
        vegid_record,
        vegid_get_value,
This page took 0.023168 seconds and 4 git commands to generate.