fix: Add missing 'pselect6_time32' and 'ppoll_time32' syscall overrides
[lttng-modules.git] / src / lttng-context-preemptible.c
index 548e79f43cf7a9a36d6cb25de6eb154c5c5acba3..2d6b2e344cb046f4bd1218a7f2550f52f34a7408 100644 (file)
@@ -46,8 +46,7 @@ void preemptible_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        WARN_ON_ONCE(pc < LTTNG_PREEMPT_DISABLE_NESTING);
        if (pc == LTTNG_PREEMPT_DISABLE_NESTING)
                preemptible = 1;
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(preemptible));
-       chan->ops->event_write(ctx, &preemptible, sizeof(preemptible));
+       chan->ops->event_write(ctx, &preemptible, sizeof(preemptible), lttng_alignof(preemptible));
 }
 
 static
@@ -67,7 +66,7 @@ void preemptible_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("preemptible",
                lttng_kernel_static_type_integer_from_type(uint8_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        preemptible_get_size,
        preemptible_record,
        preemptible_get_value,
This page took 0.026753 seconds and 4 git commands to generate.