X-Git-Url: https://git.lttng.org/?p=lttng-ust.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Flttng-ust-comm.c;h=2c902dc2737e922204628293e806306fa08e174a;hp=f180c3bc8277874ddd673954b1e3bf8467b7e95a;hb=c117e9884c3acc65408d8f65b2cd86a8511df1cc;hpb=d2a010d1e67e246e8ab4a847b8bbbdbce2b4e2d7 diff --git a/src/lib/lttng-ust/lttng-ust-comm.c b/src/lib/lttng-ust/lttng-ust-comm.c index f180c3bc..2c902dc2 100644 --- a/src/lib/lttng-ust/lttng-ust-comm.c +++ b/src/lib/lttng-ust/lttng-ust-comm.c @@ -620,7 +620,8 @@ void get_allow_blocking(void) } static -int register_to_sessiond(int socket, enum lttng_ust_ctl_socket_type type) +int register_to_sessiond(int socket, enum lttng_ust_ctl_socket_type type, + const char *procname) { return ustcomm_send_reg_msg(socket, type, @@ -629,7 +630,8 @@ int register_to_sessiond(int socket, enum lttng_ust_ctl_socket_type type) lttng_ust_rb_alignof(uint16_t) * CHAR_BIT, lttng_ust_rb_alignof(uint32_t) * CHAR_BIT, lttng_ust_rb_alignof(uint64_t) * CHAR_BIT, - lttng_ust_rb_alignof(unsigned long) * CHAR_BIT); + lttng_ust_rb_alignof(unsigned long) * CHAR_BIT, + procname); } static @@ -1911,7 +1913,8 @@ restart: sock_info->root_handle = ret; } - ret = register_to_sessiond(sock_info->socket, LTTNG_UST_CTL_SOCKET_CMD); + ret = register_to_sessiond(sock_info->socket, LTTNG_UST_CTL_SOCKET_CMD, + sock_info->procname); if (ret < 0) { ERR("Error registering to %s ust cmd socket", sock_info->name); @@ -2004,7 +2007,7 @@ restart: } ret = register_to_sessiond(sock_info->notify_socket, - LTTNG_UST_CTL_SOCKET_NOTIFY); + LTTNG_UST_CTL_SOCKET_NOTIFY, sock_info->procname); if (ret < 0) { ERR("Error registering to %s ust notify socket", sock_info->name);