X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fust-context-provider.h;h=d8c9a138c7d8f05e48a8b7dedc3fde565f2e4fa4;hb=b2e37d27accf5e32128b82392dbe1a9522c7dc20;hp=c9362fb1fc46eca469d3579094e4b5f24cc06137;hpb=f3b06377a014332947b20cc4c266369ea85ddcfa;p=lttng-ust.git diff --git a/src/common/ust-context-provider.h b/src/common/ust-context-provider.h index c9362fb1..d8c9a138 100644 --- a/src/common/ust-context-provider.h +++ b/src/common/ust-context-provider.h @@ -17,6 +17,7 @@ #include "common/dynamic-type.h" struct lttng_ust_registered_context_provider; +struct lttng_ust_probe_ctx; /* * Context value @@ -54,10 +55,13 @@ struct lttng_ust_context_provider { uint32_t struct_size; const char *name; - size_t (*get_size)(void *priv, size_t offset); - void (*record)(void *priv, struct lttng_ust_ring_buffer_ctx *ctx, - struct lttng_ust_channel_buffer *chan); - void (*get_value)(void *priv, struct lttng_ust_ctx_value *value); + 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_probe_ctx *probe_ctx, + struct lttng_ust_ctx_value *value); void *priv; /* End of base ABI. Fields below should be used after checking struct_size. */