Fix: event notification: Remove duplicate event enabled check
[lttng-modules.git] / src / lttng-context-sgid.c
index 23c594f0b73e7bad803aea1101f13c24cbab8d42..c9d4211a0d739a20b4d3855cdd10beda6e0c8ba4 100644 (file)
@@ -31,13 +31,12 @@ size_t sgid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_
 static
 void sgid_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 sgid;
 
        sgid = lttng_current_sgid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(sgid));
-       chan->ops->event_write(ctx, &sgid, sizeof(sgid));
+       chan->ops->event_write(ctx, &sgid, sizeof(sgid), lttng_alignof(sgid));
 }
 
 static
@@ -51,7 +50,7 @@ void sgid_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("sgid",
                lttng_kernel_static_type_integer_from_type(gid_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        sgid_get_size,
        sgid_record,
        sgid_get_value,
This page took 0.022988 seconds and 4 git commands to generate.