X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttng-context-procname.c;h=1e1d9b59acb8c6ac152525b1f56fd6900ec4ea0e;hb=7724cf27c1e739099c7907ba5b3b8bc86f904595;hp=22714946b437411bc2a83e5716b0242b2cf4cbb2;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-procname.c b/src/lttng-context-procname.c index 22714946..1e1d9b59 100644 --- a/src/lttng-context-procname.c +++ b/src/lttng-context-procname.c @@ -34,10 +34,10 @@ size_t procname_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, s */ static void procname_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) { - chan->ops->event_write(ctx, current->comm, sizeof(current->comm)); + chan->ops->event_write(ctx, current->comm, sizeof(current->comm), 1); } static @@ -51,7 +51,7 @@ void procname_get_value(void *priv, 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,