From 9190fb5679c4626e322a4819471e6e76858e063c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 3 May 2021 12:54:10 -0400 Subject: [PATCH] Move event hash tables to private header Signed-off-by: Mathieu Desnoyers Change-Id: Id4c690c275bace3dee92b5c3c25e09ac4eb3b384 --- include/lttng/events-internal.h | 14 ++++++++++++++ include/lttng/events.h | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) 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 */ -- 2.34.1