From: Francis Giraldeau Date: Wed, 27 Aug 2014 19:52:14 +0000 (-0400) Subject: Pass arguments for context size computation X-Git-Tag: v2.11.0-rc1~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1474c8e2ef816a275305fe975b82ca6c50f5eca7;p=lttng-modules.git Pass arguments for context size computation Pass same arguments to get_size_arg() than to record(). This new operation has the same effect than get_size(), and the client code can implement either one. Signed-off-by: Francis Giraldeau Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.h b/lttng-events.h index 8dd9241d..19dd2d30 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -206,6 +206,9 @@ struct lttng_probe_ctx { struct lttng_ctx_field { struct lttng_event_field event_field; size_t (*get_size)(size_t offset); + size_t (*get_size_arg)(size_t offset, struct lttng_ctx_field *field, + struct lib_ring_buffer_ctx *ctx, + struct lttng_channel *chan); void (*record)(struct lttng_ctx_field *field, struct lib_ring_buffer_ctx *ctx, struct lttng_channel *chan);