static
void cpu_id_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 cpu;
cpu = ctx->priv.reserve_cpu;
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(cpu));
- chan->ops->event_write(ctx, &cpu, sizeof(cpu));
+ chan->ops->event_write(ctx, &cpu, sizeof(cpu), lttng_alignof(cpu));
}
static
static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
lttng_kernel_static_event_field("cpu_id",
lttng_kernel_static_type_integer_from_type(int, __BYTE_ORDER, 10),
- false, false, false),
+ false, false),
cpu_id_get_size,
cpu_id_record,
cpu_id_get_value,