ctx_record(ctx, ltt_chan, ltt_chan->ctx);
ctx_record(ctx, ltt_chan, event->ctx);
+ lib_ring_buffer_align_ctx(ctx, ctx->largest_align);
return;
}
ctx_record(ctx, ltt_chan, ltt_chan->ctx);
ctx_record(ctx, ltt_chan, event->ctx);
+ lib_ring_buffer_align_ctx(ctx, ctx->largest_align);
}
static const struct lib_ring_buffer_config client_config;
static
void ltt_channel_destroy(struct ltt_channel *ltt_chan)
{
- channel_destroy(ltt_chan->chan, ltt_chan->handle);
+ channel_destroy(ltt_chan->chan, ltt_chan->handle, 0);
}
static
buf = channel_get_ring_buffer(&client_config, chan,
cpu, handle, shm_fd, wait_fd,
memory_map_size);
- if (!lib_ring_buffer_open_read(buf, handle))
+ if (!lib_ring_buffer_open_read(buf, handle, 0))
return buf;
}
return NULL;
void ltt_buffer_read_close(struct lib_ring_buffer *buf,
struct shm_handle *handle)
{
- lib_ring_buffer_release_read(buf, handle);
+ lib_ring_buffer_release_read(buf, handle, 0);
}
static