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 cds_list_head node; /* Event notifier group handle list */
struct cds_list_head enablers_head;
struct cds_list_head event_notifiers_head; /* list of event_notifiers */
- struct lttng_ust_event_notifier_ht event_notifiers_ht; /* hashtable of event_notifiers */
+ struct lttng_ust_event_ht event_notifiers_ht; /* hashtable of event notifiers */
struct lttng_ust_ctx *ctx; /* contexts for filters. */
struct lttng_ust_channel_counter *error_counter;
CDS_INIT_LIST_HEAD(&event_notifier_group->enablers_head);
CDS_INIT_LIST_HEAD(&event_notifier_group->event_notifiers_head);
- for (i = 0; i < LTTNG_UST_EVENT_NOTIFIER_HT_SIZE; i++)
+ for (i = 0; i < LTTNG_UST_EVENT_HT_SIZE; i++)
CDS_INIT_HLIST_HEAD(&event_notifier_group->event_notifiers_ht.table[i]);
cds_list_add(&event_notifier_group->node, &event_notifier_groups);
lttng_ust_format_event_name(desc, name);
head = borrow_hash_table_bucket(
event_notifier_group->event_notifiers_ht.table,
- LTTNG_UST_EVENT_NOTIFIER_HT_SIZE, name);
+ LTTNG_UST_EVENT_HT_SIZE, name);
cds_hlist_for_each_entry(event_priv, node, head, name_hlist_node) {
/*
lttng_ust_format_event_name(event_desc, name);
head = borrow_hash_table_bucket(
event_notifier_group->event_notifiers_ht.table,
- LTTNG_UST_EVENT_NOTIFIER_HT_SIZE, name);
+ LTTNG_UST_EVENT_HT_SIZE, name);
cds_hlist_for_each_entry_safe(event_priv, node, tmp_node, head, name_hlist_node) {
if (event_desc == event_priv->desc) {