X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-sessiond%2Fust-ctl.h;h=a592abf2276d70cbfc7806a95873dfc53873e0dc;hb=3bd1e0819b577ffcb44acd7c2f8e02ff09654b7b;hp=36a3e8794c12c0c1831136470cda6519f58b94d2;hpb=baa0e4a9ab389b078f46d4bfe6ab36c41541387f;p=lttng-tools.git diff --git a/ltt-sessiond/ust-ctl.h b/ltt-sessiond/ust-ctl.h index 36a3e8794..a592abf22 100644 --- a/ltt-sessiond/ust-ctl.h +++ b/ltt-sessiond/ust-ctl.h @@ -3,8 +3,8 @@ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -19,13 +19,58 @@ #ifndef _LTT_UST_CTL_H #define _LTT_UST_CTL_H -#include "ltt-sessiond.h" -#include "session.h" +#include -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); +#include "trace-ust.h" -#endif /* _LTT_TRACE_H */ +#ifdef CONFIG_LTTNG_TOOLS_HAVE_UST + +int ustctl_register_done(int sock); +int ustctl_create_channel(int sock, struct ltt_ust_session *session, + struct lttng_channel *channel); +int ustctl_create_session(int sock, struct ltt_ust_session *session); +int ustctl_destroy_session(int sock, struct ltt_ust_session *session); +int ustctl_disable_channel(int sock, struct ltt_ust_session *session, + struct ltt_ust_channel *chan); +int ustctl_enable_channel(int sock, struct ltt_ust_session *session, + struct ltt_ust_channel *chan); + +#else + +static inline +int ustctl_register_done(int sock) +{ + return -ENOSYS; +} +static inline +int ustctl_create_channel(int sock, struct ltt_ust_session *session, + struct lttng_channel *channel) +{ + return -ENOSYS; +} +static inline +int ustctl_create_session(int sock, struct ltt_ust_session *session) +{ + return -ENOSYS; +} +static inline +int ustctl_destroy_session(int sock, struct ltt_ust_session *session) +{ + return -ENOSYS; +} +static inline +int ustctl_disable_channel(int sock, struct ltt_ust_session *session, + struct ltt_ust_channel *chan) +{ + return -ENOSYS; +} +static inline +int ustctl_enable_channel(int sock, struct ltt_ust_session *session, + struct ltt_ust_channel *chan) +{ + return -ENOSYS; +} + +#endif + +#endif /* _LTT_UST_CTL_H */