X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-preemptible.c;h=2d6b2e344cb046f4bd1218a7f2550f52f34a7408;hb=92e7fc0251da026f756f648fea5639cfdd746fff;hp=548e79f43cf7a9a36d6cb25de6eb154c5c5acba3;hpb=f7d06400be7d046205c20277a03f3f31bf5b1703;p=lttng-modules.git diff --git a/src/lttng-context-preemptible.c b/src/lttng-context-preemptible.c index 548e79f4..2d6b2e34 100644 --- a/src/lttng-context-preemptible.c +++ b/src/lttng-context-preemptible.c @@ -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,