Add kernel context support
[lttng-tools.git] / ltt-sessiond / trace.h
index 8da147230e22a928ec89b7b33f37c9a84d02cc8c..2c2f62ae010d12fb85a30ecc8ac2aefef9b5e3ed 100644 (file)
@@ -45,6 +45,7 @@ struct ltt_kernel_channel_list {
 struct ltt_kernel_event {
        int fd;
        int enabled;
+       struct lttng_kernel_context *ctx;
        struct lttng_kernel_event *event;
        struct cds_list_head list;
 };
@@ -52,8 +53,10 @@ struct ltt_kernel_event {
 /* Kernel channel */
 struct ltt_kernel_channel {
        int fd;
+       int enabled;
        char *pathname;
        unsigned int stream_count;
+       struct lttng_kernel_context *ctx;
        struct lttng_channel *channel;
        struct ltt_kernel_event_list events_list;
        struct ltt_kernel_stream_list stream_list;
@@ -101,6 +104,14 @@ struct ltt_ust_marker {
        char *channel;
 };
 
+/*
+ * Get functions.
+ */
+struct ltt_kernel_event *get_kernel_event_by_name(
+               char *name, struct ltt_kernel_channel *channel);
+struct ltt_kernel_channel *get_kernel_channel_by_name(
+               char *name, struct ltt_kernel_session *session);
+
 /*
  * Create functions malloc() the data structure.
  */
This page took 0.023487 seconds and 4 git commands to generate.