From 1474c8e2ef816a275305fe975b82ca6c50f5eca7 Mon Sep 17 00:00:00 2001 From: Francis Giraldeau Date: Wed, 27 Aug 2014 15:52:14 -0400 Subject: [PATCH] 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 --- lttng-events.h | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.34.1