X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=2ffadde1c82b38b82c51a240db213a53949c6905;hb=34a91bdb42a2a3b01b687ab5e1ba7638401e6dfc;hp=e755e0c67a8aa45ce879856bce18f13782e08de6;hpb=74d81a6cca2cd4a7718bba9368f382f9f2fbba84;p=lttng-ust.git diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index e755e0c6..2ffadde1 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -54,6 +54,8 @@ enum lttng_client_types { LTTNG_CLIENT_METADATA = 0, LTTNG_CLIENT_DISCARD = 1, LTTNG_CLIENT_OVERWRITE = 2, + LTTNG_CLIENT_DISCARD_RT = 3, + LTTNG_CLIENT_OVERWRITE_RT = 4, LTTNG_NR_CLIENT_TYPES, }; @@ -241,12 +243,14 @@ struct lttng_event_desc { } u; }; -#define LTTNG_UST_PROBE_DESC_PADDING 40 +#define LTTNG_UST_PROBE_DESC_PADDING 20 struct lttng_probe_desc { const char *provider; const struct lttng_event_desc **event_desc; unsigned int nr_events; struct cds_list_head head; /* chain registered probes */ + struct cds_list_head lazy_init_head; + int lazy; /* lazy registration */ char padding[LTTNG_UST_PROBE_DESC_PADDING]; }; @@ -354,7 +358,7 @@ struct lttng_event { struct cds_list_head node; /* Event list in session */ struct cds_list_head _deprecated2; void *_deprecated3; - unsigned int metadata_dumped:1; + unsigned int _deprecated4:1; /* LTTng-UST 2.1 starts here */ /* list of struct lttng_bytecode_runtime, sorted by seqnum */ @@ -363,6 +367,7 @@ struct lttng_event { /* Backward references: list of lttng_enabler_ref (ref to enablers) */ struct cds_list_head enablers_ref_head; struct cds_hlist_node hlist; /* session ht of events */ + int registered; /* has reg'd tracepoint probe */ }; struct channel; @@ -418,18 +423,19 @@ struct lttng_channel { /* Event ID management */ struct lttng_session *session; int objd; /* Object associated to channel */ - unsigned int free_event_id; /* Next event ID to allocate */ - unsigned int used_event_id; /* Max allocated event IDs */ + unsigned int _deprecated1; + unsigned int _deprecated2; struct cds_list_head node; /* Channel list in session */ const struct lttng_channel_ops *ops; int header_type; /* 0: unset, 1: compact, 2: large */ struct lttng_ust_shm_handle *handle; /* shared-memory handle */ - unsigned int metadata_dumped:1; + unsigned int _deprecated3:1; /* Channel ID */ unsigned int id; enum lttng_ust_chan_type type; unsigned char uuid[LTTNG_UST_UUID_LEN]; /* Trace session unique ID */ + int tstate:1; /* Transient enable state */ }; #define LTTNG_UST_EVENT_HT_BITS 12 @@ -448,18 +454,20 @@ struct lttng_session { int active; /* Is trace session active ? */ int been_active; /* Been active ? */ int objd; /* Object associated */ - struct lttng_channel *metadata; /* Metadata channel */ + void *_deprecated1; struct cds_list_head chan_head; /* Channel list head */ struct cds_list_head events_head; /* list of events */ - struct cds_list_head _deprecated1; + struct cds_list_head _deprecated2; struct cds_list_head node; /* Session list */ - unsigned int free_chan_id; /* Next chan ID to allocate */ - unsigned int metadata_dumped:1; + int _deprecated3; + unsigned int _deprecated4:1; /* New UST 2.1 */ /* List of enablers */ struct cds_list_head enablers_head; struct lttng_ust_event_ht events_ht; /* ht of events */ + void *owner; /* object owner */ + int tstate:1; /* Transient enable state */ }; struct lttng_transport { @@ -544,5 +552,6 @@ void lttng_free_event_filter_runtime(struct lttng_event *event); void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime); struct cds_list_head *lttng_get_probe_list_head(void); +int lttng_session_active(void); #endif /* _LTTNG_UST_EVENTS_H */