Fix: system call instrumentation build failure on v3.0-v3.10 RT kernel
[lttng-modules.git] / src / lttng-context-gid.c
index c1906e25ac998092171f41de997edab2d976dcf0..142061c10fb1916c4203f57233964ac6a1525894 100644 (file)
@@ -31,13 +31,12 @@ size_t gid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t
 static
 void gid_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 gid;
 
        gid = lttng_current_gid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(gid));
-       chan->ops->event_write(ctx, &gid, sizeof(gid));
+       chan->ops->event_write(ctx, &gid, sizeof(gid), lttng_alignof(gid));
 }
 
 static
@@ -51,7 +50,7 @@ void gid_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("gid",
                lttng_kernel_static_type_integer_from_type(gid_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        gid_get_size,
        gid_record,
        gid_get_value,
This page took 0.023594 seconds and 4 git commands to generate.