-struct lttng_session {
- int active; /* Is trace session active ? */
- int been_active; /* Has trace session been active ? */
- struct file *file; /* File associated to session */
- struct list_head chan; /* Channel list head */
- struct list_head events; /* Event list head */
- struct list_head list; /* Session list */
- unsigned int free_chan_id; /* Next chan ID to allocate */
- uuid_le uuid; /* Trace session unique ID */
- struct lttng_metadata_cache *metadata_cache;
- struct lttng_id_tracker pid_tracker;
- struct lttng_id_tracker vpid_tracker;
- struct lttng_id_tracker uid_tracker;
- struct lttng_id_tracker vuid_tracker;
- struct lttng_id_tracker gid_tracker;
- struct lttng_id_tracker vgid_tracker;
- unsigned int metadata_dumped:1,
- tstate:1; /* Transient enable state */
- /* List of event enablers */
- struct list_head enablers_head;
- /* Hash table of events */
- struct lttng_event_ht events_ht;
- char name[LTTNG_KERNEL_ABI_SESSION_NAME_LEN];
- char creation_time[LTTNG_KERNEL_ABI_SESSION_CREATION_TIME_ISO8601_LEN];
-};
-
-struct lttng_counter {
- struct file *file; /* File associated to counter. */
- struct file *owner;
- struct lttng_counter_transport *transport;
- struct lib_counter *counter;
- struct lttng_counter_ops *ops;
-};
-
-struct lttng_event_notifier_group {
- struct file *file; /* File associated to event notifier group */
- struct file *notif_file; /* File used to expose notifications to userspace. */
- 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_notifier_ht event_notifiers_ht; /* Hash table of event notifiers */
- struct lttng_kernel_channel_buffer_ops *ops;
- struct lttng_transport *transport;
- struct channel *chan; /* Ring buffer channel for event notifier group. */
- struct lib_ring_buffer *buf; /* Ring buffer for event notifier group. */
- wait_queue_head_t read_wait;
- struct irq_work wakeup_pending; /* Pending wakeup irq work. */
- struct lttng_kernel_event_notifier *sc_unknown; /* for unknown syscalls */
- struct lttng_kernel_event_notifier *sc_compat_unknown;
-
- struct lttng_syscall_filter *sc_filter;