From: Mathieu Desnoyers Date: Mon, 3 May 2021 16:54:10 +0000 (-0400) Subject: Move event hash tables to private header X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9190fb5679c4626e322a4819471e6e76858e063c;p=lttng-modules.git Move event hash tables to private header Signed-off-by: Mathieu Desnoyers Change-Id: Id4c690c275bace3dee92b5c3c25e09ac4eb3b384 --- diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index 8ac87e7f..defea840 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -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 */ diff --git a/include/lttng/events.h b/include/lttng/events.h index 3a5f94d3..b7267cd5 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -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 */