X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng-sessiond-comm.h;h=019f92ec51d6ec62a7e610cb40a3a32fea3f4429;hb=1c66d761f6563a455f2cf597a2e72c1d186cf343;hp=be903a6ce3f9f66c909864f1cfbaf2a75743e2a7;hpb=e88129fcabf35d124a7d97f6600350745dcbbb81;p=lttng-tools.git diff --git a/include/lttng-sessiond-comm.h b/include/lttng-sessiond-comm.h index be903a6ce..019f92ec5 100644 --- a/include/lttng-sessiond-comm.h +++ b/include/lttng-sessiond-comm.h @@ -63,6 +63,7 @@ enum lttcomm_sessiond_command { LTTNG_LIST_EVENTS, LTTNG_LIST_SESSIONS, LTTNG_LIST_TRACEPOINTS, + LTTNG_REGISTER_CONSUMER, LTTNG_START_TRACE, LTTNG_STOP_TRACE, }; @@ -91,6 +92,7 @@ enum lttcomm_return_code { LTTCOMM_SELECT_SESS, /* Must select a session */ LTTCOMM_EXIST_SESS, /* Session name already exist */ LTTCOMM_NO_EVENT, /* No event found */ + LTTCOMM_CONNECT_FAIL, /* Unable to connect to unix socket */ LTTCOMM_KERN_NA, /* Kernel tracer unavalable */ LTTCOMM_KERN_EVENT_EXIST, /* Kernel event already exists */ LTTCOMM_KERN_SESS_FAIL, /* Kernel create session failed */ @@ -154,6 +156,10 @@ struct lttcomm_session_msg { char event_name[NAME_MAX]; struct lttng_event_context ctx; } context; + /* Use by register_consumer */ + struct { + char path[PATH_MAX]; + } reg; /* List */ struct { char channel_name[NAME_MAX]; @@ -193,6 +199,7 @@ struct lttcomm_kconsumerd_msg { int fd; uint32_t state; /* enum lttcomm_kconsumerd_fd_state */ unsigned long max_sb_size; /* the subbuffer size for this channel */ + enum lttng_event_output output; /* use splice or mmap to consume this fd */ }; extern int lttcomm_create_unix_sock(const char *pathname);