* Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
* Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License, version 2.1 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: LGPL-2.1-only
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * 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 <string.h>
#include <lttng/health-internal.h>
#include <bin/lttng-sessiond/health-sessiond.h>
[ HEALTH_SESSIOND_TYPE_HT_CLEANUP ] = "Session daemon hash table cleanup",
[ HEALTH_SESSIOND_TYPE_APP_MANAGE_NOTIFY ] = "Session daemon application notification manager",
[ HEALTH_SESSIOND_TYPE_APP_REG_DISPATCH ] = "Session daemon application registration dispatcher",
+ [ HEALTH_SESSIOND_TYPE_ROTATION ] = "Session daemon rotation manager",
+ [ HEALTH_SESSIOND_TYPE_TIMER ] = "Session daemon timer manager",
+ [ HEALTH_SESSIOND_TYPE_ACTION_EXECUTOR ] = "Session daemon trigger action executor",
};
static
[ 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
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) {
goto error;
}
+ memset(&msg, 0, sizeof(msg));
msg.cmd = HEALTH_CMD_CHECK;
ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));