Fix: move "user" attribute from field to type
[lttng-modules.git] / src / lttng-context-veuid.c
index 965c3eecb3a4438f19e8a8d2b73a37b1b2f5446b..b941967b1eb60935fe0551836a5f40ef876616db 100644 (file)
@@ -30,14 +30,13 @@ size_t veuid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size
 
 static
 void veuid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
-                struct lib_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                struct lttng_kernel_ring_buffer_ctx *ctx,
+                struct lttng_kernel_channel_buffer *chan)
 {
        uid_t veuid;
 
        veuid = lttng_current_veuid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(veuid));
-       chan->ops->event_write(ctx, &veuid, sizeof(veuid));
+       chan->ops->event_write(ctx, &veuid, sizeof(veuid), lttng_alignof(veuid));
 }
 
 static
@@ -51,7 +50,7 @@ void veuid_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("veuid",
                lttng_kernel_static_type_integer_from_type(uid_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        veuid_get_size,
        veuid_record,
        veuid_get_value,
This page took 0.022951 seconds and 4 git commands to generate.