X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-preemptible.c;h=11c15792933d612ed40e1bbf6dd68d9ae6469ac9;hb=45fe4e1a42028b821757e0b98f9b33bf435a108a;hp=41b8ae5cd71471dbe6f2ea85ae6b234e6cd0ba0b;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-preemptible.c b/src/lttng-context-preemptible.c index 41b8ae5c..11c15792 100644 --- a/src/lttng-context-preemptible.c +++ b/src/lttng-context-preemptible.c @@ -37,8 +37,8 @@ size_t preemptible_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx static void preemptible_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) { int pc = preempt_count(); uint8_t preemptible = 0; @@ -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