unsigned int read_timer_interval);
void (*channel_destroy)(struct channel *chan);
struct lib_ring_buffer *(*buffer_read_open)(struct channel *chan);
+ int (*buffer_has_read_closed_stream)(struct channel *chan);
void (*buffer_read_close)(struct lib_ring_buffer *buf);
int (*event_reserve)(struct lib_ring_buffer_ctx *ctx,
uint32_t event_id);
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 */
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;
};
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);