-struct lttng_counter_ops {
- struct lib_counter *(*counter_create)(size_t nr_dimensions,
- const size_t *max_nr_elem, /* for each dimension */
- int64_t global_sum_step);
- void (*counter_destroy)(struct lib_counter *counter);
- int (*counter_add)(struct lib_counter *counter, const size_t *dimension_indexes,
- int64_t v);
- /*
- * counter_read reads a specific cpu's counter if @cpu >= 0, or
- * the global aggregation counter if @cpu == -1.
- */
- int (*counter_read)(struct lib_counter *counter, const size_t *dimension_indexes, int cpu,
- int64_t *value, bool *overflow, bool *underflow);
- /*
- * counter_aggregate returns the total sum of all per-cpu counters and
- * the global aggregation counter.
- */
- int (*counter_aggregate)(struct lib_counter *counter, const size_t *dimension_indexes,
- int64_t *value, bool *overflow, bool *underflow);
- int (*counter_clear)(struct lib_counter *counter, const size_t *dimension_indexes);
-};
-
-struct lttng_transport {
- char *name;
- struct module *owner;
- struct list_head node;
- struct lttng_kernel_channel_buffer_ops ops;
-};
-
-struct lttng_counter_transport {
- char *name;
- struct module *owner;
- struct list_head node;
- struct lttng_counter_ops ops;
-};
-
-struct lttng_syscall_filter;
-
-#define LTTNG_EVENT_HT_BITS 12
-#define LTTNG_EVENT_HT_SIZE (1U << LTTNG_EVENT_HT_BITS)
-
-struct lttng_event_ht {
- struct hlist_head table[LTTNG_EVENT_HT_SIZE];
-};
-
-#define LTTNG_EVENT_NOTIFIER_HT_BITS 12
-#define LTTNG_EVENT_NOTIFIER_HT_SIZE (1U << LTTNG_EVENT_NOTIFIER_HT_BITS)
-
-struct lttng_event_notifier_ht {
- struct hlist_head table[LTTNG_EVENT_NOTIFIER_HT_SIZE];
-};
-