X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-ringbuffer-context.h;h=70ec24409f610857b613522a2cd4051b24e570ba;hb=b2e37d27accf5e32128b82392dbe1a9522c7dc20;hp=133d802d1d29d029ff72b5b55afbec6986ef7b7b;hpb=f3b06377a014332947b20cc4c266369ea85ddcfa;p=lttng-ust.git diff --git a/include/lttng/ust-ringbuffer-context.h b/include/lttng/ust-ringbuffer-context.h index 133d802d..70ec2440 100644 --- a/include/lttng/ust-ringbuffer-context.h +++ b/include/lttng/ust-ringbuffer-context.h @@ -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; }