projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add internal extended channel structure
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl-health.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl-health.c
b/src/lib/lttng-ctl/lttng-ctl-health.c
index a3863619f78587cb842ea8e25c510be7c1a986ba..fffdfa0d8ecbdee4cef8965a217ca94f19944821 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl-health.c
+++ b/
src/lib/lttng-ctl/lttng-ctl-health.c
@@
-20,11
+20,13
@@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _LGPL_SOURCE
#include <unistd.h>
#include <sys/types.h>
#include <stdint.h>
#include <limits.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdint.h>
#include <limits.h>
#include <errno.h>
+#include <string.h>
#include <lttng/health-internal.h>
#include <bin/lttng-sessiond/health-sessiond.h>
#include <lttng/health-internal.h>
#include <bin/lttng-sessiond/health-sessiond.h>
@@
-84,6
+86,9
@@
const char *relayd_thread_name[NR_HEALTH_RELAYD_TYPES] = {
[ HEALTH_RELAYD_TYPE_DISPATCHER ] = "Relay daemon dispatcher",
[ HEALTH_RELAYD_TYPE_WORKER ] = "Relay daemon worker",
[ HEALTH_RELAYD_TYPE_LISTENER ] = "Relay daemon listener",
[ HEALTH_RELAYD_TYPE_DISPATCHER ] = "Relay daemon dispatcher",
[ HEALTH_RELAYD_TYPE_WORKER ] = "Relay daemon worker",
[ HEALTH_RELAYD_TYPE_LISTENER ] = "Relay daemon listener",
+ [ HEALTH_RELAYD_TYPE_LIVE_DISPATCHER ] = "Relay daemon live dispatcher",
+ [ HEALTH_RELAYD_TYPE_LIVE_WORKER ] = "Relay daemon live worker",
+ [ HEALTH_RELAYD_TYPE_LIVE_LISTENER ] = "Relay daemon live listener",
};
static
};
static
@@
-257,7
+262,7
@@
retry:
if (ret) {
goto error;
}
if (ret) {
goto error;
}
- /* Connect to
the sesssion daemon
*/
+ /* Connect to
component
*/
sock = lttcomm_connect_unix_sock(health->health_sock_path);
if (sock < 0) {
if (tracing_group) {
sock = lttcomm_connect_unix_sock(health->health_sock_path);
if (sock < 0) {
if (tracing_group) {
@@
-269,6
+274,7
@@
retry:
goto error;
}
goto error;
}
+ memset(&msg, 0, sizeof(msg));
msg.cmd = HEALTH_CMD_CHECK;
ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));
msg.cmd = HEALTH_CMD_CHECK;
ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));
This page took
0.025599 seconds
and
5
git commands to generate.