X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Flttng-context.c;h=fa209a2cbcc013786fa3eeb212ba4560ee1ffb58;hb=a5d437c5f61a1b089e3ea76e4d124683b3aa456e;hp=046f2a85e86955aef62195321dd08dcbbdd43add;hpb=b5457df5fd74e033cbaa75307f9bbc12aff4ab8f;p=lttng-ust.git diff --git a/src/lib/lttng-ust/lttng-context.c b/src/lib/lttng-ust/lttng-context.c index 046f2a85..fa209a2c 100644 --- a/src/lib/lttng-ust/lttng-context.c +++ b/src/lib/lttng-ust/lttng-context.c @@ -254,11 +254,13 @@ void lttng_destroy_context(struct lttng_ust_ctx *ctx) */ int lttng_ust_context_set_provider_rcu(struct lttng_ust_ctx **_ctx, const char *name, - size_t (*get_size)(void *priv, size_t offset), - void (*record)(void *priv, struct lttng_ust_ring_buffer_ctx *ctx, + size_t (*get_size)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + size_t offset), + void (*record)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + struct lttng_ust_ring_buffer_ctx *ctx, struct lttng_ust_channel_buffer *chan), - void (*get_value)(void *priv, struct lttng_ust_ctx_value *value), - void *priv) + void (*get_value)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + struct lttng_ust_ctx_value *value)) { int i, ret; struct lttng_ust_ctx *ctx = *_ctx, *new_ctx; @@ -288,7 +290,6 @@ int lttng_ust_context_set_provider_rcu(struct lttng_ust_ctx **_ctx, new_fields[i].get_size = get_size; new_fields[i].record = record; new_fields[i].get_value = get_value; - new_fields[i].priv = priv; } new_ctx->fields = new_fields; lttng_ust_rcu_assign_pointer(*_ctx, new_ctx);