X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-sessiond%2Ftrace.h;h=f0d25c89400db78de651f36850a78db95ebb1c8b;hb=9e78d6ae219789dee9c96f35f190d6166ef389c3;hp=910d38f041d55649742adf97588ae0e2b514d075;hpb=aaf267147df386f0438de88782296077ff5b5861;p=lttng-tools.git diff --git a/ltt-sessiond/trace.h b/ltt-sessiond/trace.h index 910d38f04..f0d25c894 100644 --- a/ltt-sessiond/trace.h +++ b/ltt-sessiond/trace.h @@ -19,8 +19,8 @@ #ifndef _LTT_TRACE_H #define _LTT_TRACE_H -#include "ltt-sessiond.h" -#include "session.h" +#include +#include #include "lttng-kernel.h" /* Kernel event list */ @@ -28,6 +28,16 @@ struct ltt_kernel_event_list { struct cds_list_head head; }; +/* Channel stream list */ +struct ltt_kernel_stream_list { + struct cds_list_head head; +}; + +/* Channel list */ +struct ltt_kernel_channel_list { + struct cds_list_head head; +}; + /* Kernel event */ struct ltt_kernel_event { int fd; @@ -38,21 +48,37 @@ struct ltt_kernel_event { /* Kernel channel */ struct ltt_kernel_channel { int fd; + char *pathname; + unsigned int stream_count; struct lttng_kernel_channel *channel; struct ltt_kernel_event_list events_list; + struct ltt_kernel_stream_list stream_list; + struct cds_list_head list; }; /* Metadata */ struct ltt_kernel_metadata { int fd; + char *pathname; struct lttng_kernel_channel *conf; }; +/* Channel stream */ +struct ltt_kernel_stream { + int fd; + char *pathname; + int state; + struct cds_list_head list; +}; + /* Kernel session */ struct ltt_kernel_session { int fd; + int metadata_stream_fd; + unsigned int channel_count; + unsigned int stream_count_global; struct ltt_kernel_metadata *metadata; - struct ltt_kernel_channel *channel; + struct ltt_kernel_channel_list channel_list; }; /* UST trace representation */ @@ -70,10 +96,4 @@ struct ltt_ust_marker { char *channel; }; -int get_trace_count_per_session(struct ltt_session *session); -void get_traces_per_session(struct ltt_session *session, struct lttng_trace *traces); -int ust_create_trace(struct command_ctx *cmd_ctx); -int ust_start_trace(struct command_ctx *cmd_ctx); -int ust_stop_trace(struct command_ctx *cmd_ctx); - #endif /* _LTT_TRACE_H */