Unregister tracepoint probes when not needed
[lttng-ust.git] / include / lttng / ust-events.h
index 663ffbe353d454ba1ca47417e3ec3194b8068be5..363fcb5cae6ce228175034e669b358040c4ad4d4 100644 (file)
@@ -356,7 +356,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 */
@@ -365,6 +365,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;
@@ -426,12 +427,13 @@ struct lttng_channel {
        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
@@ -450,19 +452,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 */
-       int _deprecated2;
-       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 {
This page took 0.023033 seconds and 4 git commands to generate.