Drop 'linux/perf_events.h' wrapper
[lttng-modules.git] / src / lttng-context-vsuid.c
index 8210e8f8026f445365cb5f13c0ac39c0bb09c600..f7d5226bf42ffd57d1fe76784682cc4fa3c36353 100644 (file)
@@ -31,13 +31,12 @@ size_t vsuid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size
 static
 void vsuid_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)
 {
        uid_t vsuid;
 
        vsuid = lttng_current_vsuid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(vsuid));
-       chan->ops->event_write(ctx, &vsuid, sizeof(vsuid));
+       chan->ops->event_write(ctx, &vsuid, sizeof(vsuid), lttng_alignof(vsuid));
 }
 
 static
@@ -51,7 +50,7 @@ void vsuid_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("vsuid",
                lttng_kernel_static_type_integer_from_type(uid_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        vsuid_get_size,
        vsuid_record,
        vsuid_get_value,
This page took 0.024177 seconds and 4 git commands to generate.