Pass arguments for context size computation
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Wed, 27 Aug 2014 19:52:14 +0000 (15:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 11 Jun 2018 18:38:22 +0000 (14:38 -0400)
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 <francis.giraldeau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-events.h

index 8dd9241d4cc5d1b77e5fc6b472db4f1aa44deb24..19dd2d30d0d99b71d4cc96f1d0cc95ebf9716756 100644 (file)
@@ -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);
This page took 0.026411 seconds and 4 git commands to generate.