static
void procname_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lttng_kernel_ring_buffer_ctx *ctx,
- struct lttng_channel *chan)
+ struct lttng_kernel_channel_buffer *chan)
{
- chan->ops->event_write(ctx, current->comm, sizeof(current->comm));
+ chan->ops->event_write(ctx, current->comm, sizeof(current->comm), 1);
}
static
static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
lttng_kernel_static_event_field("procname",
lttng_kernel_static_type_array_text(sizeof(current->comm)),
- false, false, false),
+ false, false),
procname_get_size,
procname_record,
procname_get_value,