Move event hash tables to private header
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 May 2021 16:54:10 +0000 (12:54 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 May 2021 14:38:33 +0000 (10:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Id4c690c275bace3dee92b5c3c25e09ac4eb3b384

include/lttng/events-internal.h
include/lttng/events.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 */
 
index 3a5f94d339339e7102a64c070508173232b8d7d8..b7267cd587a730d4b7e72b717a6eb97544414414 100644 (file)
@@ -384,20 +384,6 @@ struct lttng_kernel_channel_buffer_ops {
                                       const char __user *src, size_t len);
 };
 
-#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];
-};
-
 struct lttng_channel {
        unsigned int id;
        struct channel *chan;           /* Channel buffers */
This page took 0.026249 seconds and 4 git commands to generate.