Move kprobes, uprobes, kretprobes, syscall structures to internal header
[lttng-modules.git] / src / lttng-ring-buffer-event-notifier-client.h
index a857c8f7ef6684eed968f7e3354344889c3c4fc4..a1c8cb323187b75ba2c3c8def9457786630d9f6e 100644 (file)
@@ -14,6 +14,7 @@
 #include <lttng/abi.h>
 #include <lttng/events.h>
 #include <lttng/tracer.h>
+#include <wrapper/limits.h>
 
 static struct lttng_transport lttng_relay_transport;
 
@@ -300,15 +301,19 @@ void lttng_write_event_notifier_header(const struct lib_ring_buffer_config *conf
 }
 
 static
-int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx, uint32_t event_id)
+int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx)
 {
+       struct channel *chan = ctx->client_priv;
        int ret;
 
+       memset(&ctx->priv, 0, sizeof(ctx->priv));
+       ctx->priv.chan = chan;
+
        ret = lib_ring_buffer_reserve(&client_config, ctx, NULL);
        if (ret)
                return ret;
        lib_ring_buffer_backend_get_pages(&client_config, ctx,
-                       &ctx->backend_pages);
+                       &ctx->priv.backend_pages);
 
        lttng_write_event_notifier_header(&client_config, ctx);
        return 0;
This page took 0.023076 seconds and 4 git commands to generate.