include: implement REUSE with SPDX identifiers
[lttng-ust.git] / include / lttng / ust-ringbuffer-context.h
index 133d802d1d29d029ff72b5b55afbec6986ef7b7b..9822a4f2d7837bfa897121c82ca3f455db5401c5 100644 (file)
@@ -1,8 +1,8 @@
+// SPDX-FileCopyrightText: 2010-2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+//
+// SPDX-License-Identifier: MIT
+
 /*
- * SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2010-2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
  * Ring buffer context header.
  */
 
@@ -23,6 +23,7 @@ struct lttng_ust_ring_buffer;
 struct lttng_ust_ring_buffer_channel;
 struct lttng_ust_ring_buffer_ctx;
 struct lttng_ust_ring_buffer_ctx_private;
+struct lttng_ust_probe_ctx;
 
 /*
  * ring buffer context
@@ -44,7 +45,7 @@ struct lttng_ust_ring_buffer_ctx {
                                                 * alignment of the largest element
                                                 * in the payload
                                                 */
-       void *ip;                               /* caller ip address */
+       struct lttng_ust_probe_ctx *probe_ctx;  /* Probe context */
 
        /* Private ring buffer context, set by reserve callback. */
        struct lttng_ust_ring_buffer_ctx_private *priv;
@@ -63,18 +64,18 @@ struct lttng_ust_ring_buffer_ctx {
 static inline
 void lttng_ust_ring_buffer_ctx_init(struct lttng_ust_ring_buffer_ctx *ctx,
                                        void *client_priv, size_t data_size, int largest_align,
-                                       void *ip)
+                                       struct lttng_ust_probe_ctx *probe_ctx)
        lttng_ust_notrace;
 static inline
 void lttng_ust_ring_buffer_ctx_init(struct lttng_ust_ring_buffer_ctx *ctx,
                                        void *client_priv, size_t data_size, int largest_align,
-                                       void *ip)
+                                       struct lttng_ust_probe_ctx *probe_ctx)
 {
        ctx->struct_size = sizeof(struct lttng_ust_ring_buffer_ctx);
        ctx->client_priv = client_priv;
        ctx->data_size = data_size;
        ctx->largest_align = largest_align;
-       ctx->ip = ip;
+       ctx->probe_ctx = probe_ctx;
        ctx->priv = NULL;
 }
 
This page took 0.027668 seconds and 4 git commands to generate.