Introduce struct lttng_kernel_channel_counter and struct lttng_kernel_channel_counter_ops
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 27 Jan 2022 19:03:49 +0000 (14:03 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 15 Jul 2024 20:58:48 +0000 (16:58 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icdc8c1fb6444eca2051b60fa4a7dd564e943da68

include/lttng/events.h

index d316ff6de3cebfe78293ea246b9e4ce078d33d5a..f1735c71a971375628e9d45272c24203f5732c1b 100644 (file)
@@ -448,6 +448,22 @@ struct lttng_kernel_channel_buffer {
        struct lttng_kernel_channel_buffer_ops *ops;
 };
 
+struct lttng_kernel_channel_counter;
+struct lttng_kernel_channel_counter_ops_private;
+
+struct lttng_kernel_channel_counter_ops {
+       struct lttng_kernel_channel_counter_ops_private *priv;  /* Private channel counter ops interface */
+
+       int (*event_counter_add)(struct lttng_kernel_event_counter *event_counter, int64_t v);
+};
+
+struct lttng_kernel_channel_counter {
+       struct lttng_kernel_channel_common parent;
+       struct lttng_kernel_channel_counter_private *priv;      /* Private channel counter interface */
+
+       struct lttng_kernel_channel_counter_ops *ops;
+};
+
 #define LTTNG_DYNAMIC_LEN_STACK_SIZE   128
 
 struct lttng_dynamic_len_stack {
This page took 0.025735 seconds and 4 git commands to generate.