From: Mathieu Desnoyers Date: Tue, 16 Mar 2021 02:59:35 +0000 (-0400) Subject: Move hash tables to internal header X-Git-Tag: v2.13.0-rc1~285 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=681f60019e43a9c5d40941cce0fcfdb91e3ef929;p=lttng-ust.git Move hash tables to internal header Signed-off-by: Mathieu Desnoyers Change-Id: I314bd74c593c2b48dbc9af31ff25dab7a3738382 --- diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index c9c118c2..c928fadb 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -568,26 +568,6 @@ struct lttng_stack_ctx { char padding[LTTNG_UST_STACK_CTX_PADDING]; }; -#define LTTNG_UST_EVENT_HT_BITS 12 -#define LTTNG_UST_EVENT_HT_SIZE (1U << LTTNG_UST_EVENT_HT_BITS) - -struct lttng_ust_event_ht { - struct cds_hlist_head table[LTTNG_UST_EVENT_HT_SIZE]; -}; - -#define LTTNG_UST_EVENT_NOTIFIER_HT_BITS 12 -#define LTTNG_UST_EVENT_NOTIFIER_HT_SIZE (1U << LTTNG_UST_EVENT_NOTIFIER_HT_BITS) -struct lttng_ust_event_notifier_ht { - struct cds_hlist_head table[LTTNG_UST_EVENT_NOTIFIER_HT_SIZE]; -}; - -#define LTTNG_UST_ENUM_HT_BITS 12 -#define LTTNG_UST_ENUM_HT_SIZE (1U << LTTNG_UST_ENUM_HT_BITS) - -struct lttng_ust_enum_ht { - struct cds_hlist_head table[LTTNG_UST_ENUM_HT_SIZE]; -}; - struct lttng_ust_session_private; /* diff --git a/liblttng-ust/ust-events-internal.h b/liblttng-ust/ust-events-internal.h index 8575300e..15025b09 100644 --- a/liblttng-ust/ust-events-internal.h +++ b/liblttng-ust/ust-events-internal.h @@ -192,6 +192,26 @@ struct lttng_counter { struct lttng_counter_ops *ops; }; +#define LTTNG_UST_EVENT_HT_BITS 12 +#define LTTNG_UST_EVENT_HT_SIZE (1U << LTTNG_UST_EVENT_HT_BITS) + +struct lttng_ust_event_ht { + struct cds_hlist_head table[LTTNG_UST_EVENT_HT_SIZE]; +}; + +#define LTTNG_UST_EVENT_NOTIFIER_HT_BITS 12 +#define LTTNG_UST_EVENT_NOTIFIER_HT_SIZE (1U << LTTNG_UST_EVENT_NOTIFIER_HT_BITS) +struct lttng_ust_event_notifier_ht { + struct cds_hlist_head table[LTTNG_UST_EVENT_NOTIFIER_HT_SIZE]; +}; + +#define LTTNG_UST_ENUM_HT_BITS 12 +#define LTTNG_UST_ENUM_HT_SIZE (1U << LTTNG_UST_ENUM_HT_BITS) + +struct lttng_ust_enum_ht { + struct cds_hlist_head table[LTTNG_UST_ENUM_HT_SIZE]; +}; + struct lttng_event_notifier_group { int objd; void *owner;