Signed-off-by: David Goulet <david.goulet@polymtl.ca>
/* Add event to event list */
cds_list_add(&event->list, &channel->events_list.head);
+ channel->event_count++;
+
DBG("Event %s created (fd: %d)", ev->name, event->fd);
return 0;
lkc->fd = 0;
lkc->stream_count = 0;
+ lkc->event_count = 0;
lkc->enabled = 1;
lkc->ctx = NULL;
/* Init linked list */
int enabled;
char *pathname;
unsigned int stream_count;
+ unsigned int event_count;
struct lttng_kernel_context *ctx;
struct lttng_channel *channel;
struct ltt_kernel_event_list events_list;