struct list_head node; /* event notifier group list */
struct list_head enablers_head; /* List of enablers */
struct list_head event_notifiers_head; /* List of event notifier */
- struct lttng_event_ht events_ht; /* Hash table of event notifiers */
+ struct lttng_event_ht events_name_ht; /* Hash table of event notifiers, indexed by name */
struct lttng_kernel_channel_buffer_ops *ops;
struct lttng_transport *transport;
struct lttng_kernel_ring_buffer_channel *chan; /* Ring buffer channel for event notifier group. */
{
struct lttng_event_notifier_enabler *event_notifier_enabler =
container_of(event_enabler, struct lttng_event_notifier_enabler, parent);
- return &event_notifier_enabler->group->events_ht;
+ return &event_notifier_enabler->group->events_name_ht;
}
default:
return NULL;
INIT_LIST_HEAD(&event_notifier_group->enablers_head);
INIT_LIST_HEAD(&event_notifier_group->event_notifiers_head);
for (i = 0; i < LTTNG_EVENT_HT_SIZE; i++)
- INIT_HLIST_HEAD(&event_notifier_group->events_ht.table[i]);
+ INIT_HLIST_HEAD(&event_notifier_group->events_name_ht.table[i]);
list_add(&event_notifier_group->node, &event_notifier_groups);