Refactoring: hide internal fields of ring buffer context
[lttng-ust.git] / liblttng-ust / lttng-context-procname.c
index 5e3f9f8a84ce149225974712db0169e899213216..2e2c7fa2ef14a6227007f6746c752d42923fc947 100644 (file)
@@ -10,7 +10,7 @@
 #include <stddef.h>
 #include <lttng/ust-events.h>
 #include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-config.h>
+#include <lttng/ringbuffer-context.h>
 #include <urcu/tls-compat.h>
 #include <assert.h>
 #include "compat.h"
@@ -73,12 +73,12 @@ size_t procname_get_size(struct lttng_ust_ctx_field *field, size_t offset)
 static
 void procname_record(struct lttng_ust_ctx_field *field,
                 struct lttng_ust_lib_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                struct lttng_ust_channel_buffer *chan)
 {
        char *procname;
 
        procname = wrapper_getprocname();
-       chan->ops->event_write(ctx, procname, LTTNG_UST_ABI_PROCNAME_LEN);
+       chan->ops->event_write(ctx, procname, LTTNG_UST_ABI_PROCNAME_LEN, 1);
 }
 
 static
This page took 0.02437 seconds and 4 git commands to generate.