X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-pthread-id.c;h=b6aa547062425689469c9bd1dd2eb63f80ab1de6;hb=8936b6c0add7eb6706e0a1ca50e03c446dda4006;hp=d26cf90820b2c4a53d6c2627f97316e6e84a3a95;hpb=b62f8205216d20d7ef16b536efd81389dc6fdd2f;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-pthread-id.c b/liblttng-ust/lttng-context-pthread-id.c index d26cf908..b6aa5470 100644 --- a/liblttng-ust/lttng-context-pthread-id.c +++ b/liblttng-ust/lttng-context-pthread-id.c @@ -34,8 +34,7 @@ void pthread_id_record(struct lttng_ust_ctx_field *field, unsigned long pthread_id; pthread_id = (unsigned long) pthread_self(); - lttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_ust_rb_alignof(pthread_id)); - chan->ops->event_write(ctx, &pthread_id, sizeof(pthread_id)); + chan->ops->event_write(ctx, &pthread_id, sizeof(pthread_id), lttng_ust_rb_alignof(pthread_id)); } static