Keep reference count on transport and file ops modules
[lttng-modules.git] / ltt-events.h
index 304bcb69989b406d8c3b02d76f3320ca5321324c..8cbe8efb5c691de42d845c9442c9e5aed91c3e8d 100644 (file)
@@ -210,6 +210,13 @@ struct ltt_channel_ops {
        int (*is_disabled)(struct channel *chan);
 };
 
+struct ltt_transport {
+       char *name;
+       struct module *owner;
+       struct list_head node;
+       struct ltt_channel_ops ops;
+};
+
 struct ltt_channel {
        unsigned int id;
        struct channel *chan;           /* Channel buffers */
@@ -221,6 +228,7 @@ struct ltt_channel {
        unsigned int free_event_id;     /* Next event ID to allocate */
        struct list_head list;          /* Channel list */
        struct ltt_channel_ops *ops;
+       struct ltt_transport *transport;
        int header_type;                /* 0: unset, 1: compact, 2: large */
        int metadata_dumped:1;
 };
@@ -238,13 +246,6 @@ struct ltt_session {
        int metadata_dumped:1;
 };
 
-struct ltt_transport {
-       char *name;
-       struct module *owner;
-       struct list_head node;
-       struct ltt_channel_ops ops;
-};
-
 struct ltt_session *ltt_session_create(void);
 int ltt_session_enable(struct ltt_session *session);
 int ltt_session_disable(struct ltt_session *session);
This page took 0.023877 seconds and 4 git commands to generate.