int been_active; /* Has trace session been active ? */
struct file *file; /* File associated to session */
struct list_head chan_head; /* Channel list head */
- struct list_head events; /* Event list head */
+ struct list_head events_head; /* Event list head */
struct list_head list; /* Session list */
unsigned int free_chan_id; /* Next chan ID to allocate */
guid_t uuid; /* Trace session unique ID */
{
struct lttng_event_recorder_enabler *event_recorder_enabler =
container_of(event_enabler, struct lttng_event_recorder_enabler, parent.parent);
- return &event_recorder_enabler->chan->parent.session->priv->events;
+ return &event_recorder_enabler->chan->parent.session->priv->events_head;
}
case LTTNG_EVENT_ENABLER_TYPE_NOTIFIER:
{
session_priv->pub = session;
INIT_LIST_HEAD(&session_priv->chan_head);
- INIT_LIST_HEAD(&session_priv->events);
+ INIT_LIST_HEAD(&session_priv->events_head);
lttng_guid_gen(&session_priv->uuid);
metadata_cache = kzalloc(sizeof(struct lttng_metadata_cache),
ret = lttng_syscalls_unregister_syscall_table(&chan_priv->parent.syscall_table);
WARN_ON(ret);
}
- list_for_each_entry(event_recorder_priv, &session->priv->events, parent.parent.node)
+ list_for_each_entry(event_recorder_priv, &session->priv->events_head, parent.parent.node)
_lttng_event_unregister(&event_recorder_priv->pub->parent);
synchronize_trace(); /* Wait for in-flight events to complete */
list_for_each_entry(chan_priv, &session->priv->chan_head, node) {
}
list_for_each_entry_safe(event_enabler, tmp_event_enabler, &session->priv->enablers_head, node)
lttng_event_enabler_destroy(event_enabler);
- list_for_each_entry_safe(event_recorder_priv, tmpevent_recorder_priv, &session->priv->events, parent.parent.node)
+ list_for_each_entry_safe(event_recorder_priv, tmpevent_recorder_priv, &session->priv->events_head, parent.parent.node)
_lttng_event_destroy(&event_recorder_priv->pub->parent);
list_for_each_entry_safe(chan_priv, tmpchan_priv, &session->priv->chan_head, node) {
BUG_ON(chan_priv->channel_type == METADATA_CHANNEL);
chan_priv->metadata_dumped = 0;
}
- list_for_each_entry(event_recorder_priv, &session->priv->events, parent.parent.node) {
+ list_for_each_entry(event_recorder_priv, &session->priv->events_head, parent.parent.node) {
event_recorder_priv->metadata_dumped = 0;
}
static
void lttng_session_sync_event_enablers(struct lttng_kernel_session *session)
{
- lttng_sync_event_list(&session->priv->enablers_head, &session->priv->events);
+ lttng_sync_event_list(&session->priv->enablers_head, &session->priv->events_head);
}
/*
goto end;
}
- list_for_each_entry(event_recorder_priv, &session->priv->events, parent.parent.node) {
+ list_for_each_entry(event_recorder_priv, &session->priv->events_head, parent.parent.node) {
ret = _lttng_event_recorder_metadata_statedump(&event_recorder_priv->pub->parent);
if (ret)
goto end;