struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_ust_channel_buffer *chan)
{
unsigned long pthread_id;
pthread_id = (unsigned long) pthread_self();
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_ust_channel_buffer *chan)
{
unsigned long pthread_id;
pthread_id = (unsigned long) pthread_self();
- lib_ring_buffer_align_ctx(ctx, lttng_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));