X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng-sessiond-comm.h;h=3d31ff842c4f0fcc0015b894b72ff1a7d557b63d;hb=045e5491d29048a9d888559cd91d6d6f304fc171;hp=f30bf6673d599610b818adcd6c2c4291f7a8dd6b;hpb=f6a9efaa0fe496b7fa4850daa2eae98a240433e1;p=lttng-tools.git diff --git a/include/lttng-sessiond-comm.h b/include/lttng-sessiond-comm.h index f30bf6673..3d31ff842 100644 --- a/include/lttng-sessiond-comm.h +++ b/include/lttng-sessiond-comm.h @@ -32,10 +32,10 @@ #define LTTNG_RUNDIR "/var/run/lttng" /* Default unix socket path */ -#define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK LTTNG_RUNDIR "/client-ltt-sessiond" -#define DEFAULT_GLOBAL_APPS_UNIX_SOCK LTTNG_RUNDIR "/apps-ltt-sessiond" -#define DEFAULT_HOME_APPS_UNIX_SOCK "%s/.apps-ltt-sessiond" -#define DEFAULT_HOME_CLIENT_UNIX_SOCK "%s/.client-ltt-sessiond" +#define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK LTTNG_RUNDIR "/client-lttng-sessiond" +#define DEFAULT_GLOBAL_APPS_UNIX_SOCK LTTNG_RUNDIR "/apps-lttng-sessiond" +#define DEFAULT_HOME_APPS_UNIX_SOCK "%s/.apps-lttng-sessiond" +#define DEFAULT_HOME_CLIENT_UNIX_SOCK "%s/.client-lttng-sessiond" /* Queue size of listen(2) */ #define LTTNG_SESSIOND_COMM_MAX_LISTEN 64 @@ -125,12 +125,16 @@ enum lttcomm_return_code { LTTCOMM_UST_META_FAIL, /* UST open metadata failed */ LTTCOMM_UST_START_FAIL, /* UST start trace failed */ LTTCOMM_UST_STOP_FAIL, /* UST stop trace failed */ - LTTCOMM_UST_CONSUMER_FAIL, /* UST consumer start failed */ + LTTCOMM_UST_CONSUMER64_FAIL, /* 64-bit UST consumer start failed */ + LTTCOMM_UST_CONSUMER32_FAIL, /* 32-bit UST consumer start failed */ LTTCOMM_UST_STREAM_FAIL, /* UST create stream failed */ LTTCOMM_UST_DIR_FAIL, /* UST trace directory creation failed */ LTTCOMM_UST_DIR_EXIST, /* UST trace directory exist */ LTTCOMM_UST_NO_SESSION, /* No UST session found */ LTTCOMM_UST_LIST_FAIL, /* UST listing events failed */ + LTTCOMM_UST_EVENT_EXIST, /* UST event exist */ + LTTCOMM_UST_EVENT_NOT_FOUND, /* UST event not found */ + LTTCOMM_UST_CONTEXT_EXIST, /* UST context exist */ CONSUMERD_COMMAND_SOCK_READY, /* when consumerd command socket ready */ CONSUMERD_SUCCESS_RECV_FD, /* success on receiving fds */ @@ -227,9 +231,9 @@ struct lttcomm_consumer_msg { } u; }; -#ifdef CONFIG_LTTNG_TOOLS_HAVE_UST +#ifdef HAVE_LIBLTTNG_UST_CTL -#include +#include /* * Data structure for the commands sent from sessiond to UST. @@ -266,7 +270,7 @@ struct lttcomm_ust_reply { } u; }; -#endif /* CONFIG_LTTNG_TOOLS_HAVE_UST */ +#endif /* HAVE_LIBLTTNG_UST_CTL */ extern int lttcomm_create_unix_sock(const char *pathname); extern int lttcomm_connect_unix_sock(const char *pathname);