X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fust-comm.h;h=4a3e4cea13ab9f89a9ba8365f9528d904ca51196;hb=6ddc916dfa930b6b9018ffd53a76faeb61b81ebd;hp=deb0438bedd577179196c803dc7316243bcb7f53;hpb=b728d87e617189fe9898a9492a559ecf949d2348;p=lttng-ust.git diff --git a/include/ust-comm.h b/include/ust-comm.h index deb0438b..4a3e4cea 100644 --- a/include/ust-comm.h +++ b/include/ust-comm.h @@ -39,12 +39,13 @@ #define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS 3000 #define LTTNG_RUNDIR "/var/run/lttng" +#define LTTNG_HOME_RUNDIR "%s/.lttng" /* Default unix socket path */ #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" +#define DEFAULT_HOME_APPS_UNIX_SOCK LTTNG_HOME_RUNDIR "/apps-lttng-sessiond" +#define DEFAULT_HOME_CLIENT_UNIX_SOCK LTTNG_HOME_RUNDIR "/client-lttng-sessiond" #define DEFAULT_GLOBAL_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait" #define DEFAULT_HOME_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait-%u" @@ -129,7 +130,11 @@ struct ustcomm_ust_msg { struct lttng_ust_event event; struct lttng_ust_context context; struct lttng_ust_tracer_version version; - char tracepoint_list_entry[LTTNG_UST_SYM_NAME_LEN]; + struct lttng_ust_tracepoint_iter tracepoint; + struct { + uint32_t data_size; /* following filter data */ + uint32_t reloc_offset; + } filter; } u; }; @@ -150,10 +155,15 @@ struct ustcomm_ust_reply { uint64_t memory_map_size; } stream; struct lttng_ust_tracer_version version; - char tracepoint_list_entry[LTTNG_UST_SYM_NAME_LEN]; + struct lttng_ust_tracepoint_iter tracepoint; } u; }; +/* + * LTTNG_UST_TRACEPOINT_FIELD_LIST reply is followed by a + * struct lttng_ust_field_iter field. + */ + extern int ustcomm_create_unix_sock(const char *pathname); extern int ustcomm_connect_unix_sock(const char *pathname); extern int ustcomm_accept_unix_sock(int sock);