struct ltt_kernel_event {
int fd;
int enabled;
+ /*
+ * TODO: need internal representation to support more than a
+ * single context.
+ */
struct lttng_kernel_context *ctx;
struct lttng_kernel_event *event;
struct cds_list_head list;
char *pathname;
unsigned int stream_count;
unsigned int event_count;
+ /*
+ * TODO: need internal representation to support more than a
+ * single context.
+ */
struct lttng_kernel_context *ctx;
struct lttng_channel *channel;
struct ltt_kernel_event_list events_list;
struct ltt_kernel_session {
int fd;
int metadata_stream_fd;
- int kconsumer_fds_sent;
+ int consumer_fds_sent;
int consumer_fd;
unsigned int channel_count;
unsigned int stream_count_global;
/*
* Create functions malloc() the data structure.
*/
-struct ltt_kernel_session *trace_kernel_create_session(void);
+struct ltt_kernel_session *trace_kernel_create_session(char *path);
struct ltt_kernel_channel *trace_kernel_create_channel(struct lttng_channel *chan, char *path);
struct ltt_kernel_event *trace_kernel_create_event(struct lttng_event *ev);
struct ltt_kernel_metadata *trace_kernel_create_metadata(char *path);