Move event hash tables to private header
[lttng-modules.git] / include / lttng / events-internal.h
index 8ac87e7f741fa5663887f738e1577f2f09a2f5c3..defea8405e255d6ca838882e966377ffeb7d8035 100644 (file)
@@ -344,6 +344,13 @@ struct lttng_counter {
        struct lttng_counter_ops *ops;
 };
 
+#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];
+};
+
 struct lttng_event_notifier_group {
        struct file *file;              /* File associated to event notifier group */
        struct file *notif_file;        /* File used to expose notifications to userspace. */
@@ -395,6 +402,13 @@ struct lttng_counter_transport {
        struct lttng_counter_ops ops;
 };
 
+#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];
+};
+
 struct lttng_kernel_session_private {
        struct lttng_kernel_session *pub;       /* Public session interface */
 
This page took 0.022951 seconds and 4 git commands to generate.