Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl-health.cpp
index 8981c761960dc9f8307fe280ebaabe1c9d681aec..e3234d5d4e3ef75a70761ea20420cf500f356b8a 100644 (file)
 #include <stdint.h>
 #include <limits.h>
 #include <string.h>
-#include <lttng/health-internal.h>
+#include <lttng/health-internal.hpp>
 
-#include <bin/lttng-sessiond/health-sessiond.h>
-#include <bin/lttng-consumerd/health-consumerd.h>
-#include <bin/lttng-relayd/health-relayd.h>
-#include <common/defaults.h>
-#include <common/utils.h>
-#include <common/compat/errno.h>
+#include <bin/lttng-sessiond/health-sessiond.hpp>
+#include <bin/lttng-consumerd/health-consumerd.hpp>
+#include <bin/lttng-relayd/health-relayd.hpp>
+#include <common/defaults.hpp>
+#include <common/utils.hpp>
+#include <common/compat/errno.hpp>
 
-#include "lttng-ctl-helper.h"
+#include "lttng-ctl-helper.hpp"
 
 enum health_component {
        HEALTH_COMPONENT_SESSIOND,
@@ -64,8 +64,6 @@ const char *get_sessiond_thread_name(health_type_sessiond type) {
                return "Session daemon kernel";
        case HEALTH_SESSIOND_TYPE_CONSUMER:
                return "Session daemon consumer manager";
-       case HEALTH_SESSIOND_TYPE_HT_CLEANUP:
-               return "Session daemon hash table cleanup";
        case HEALTH_SESSIOND_TYPE_APP_MANAGE_NOTIFY:
                return "Session daemon application notification manager";
        case HEALTH_SESSIOND_TYPE_APP_REG_DISPATCH:
@@ -233,7 +231,7 @@ struct lttng_health *lttng_health_create(enum health_component hc,
        struct lttng_health *lh;
        int i;
 
-       lh = (lttng_health *) zmalloc(sizeof(*lh) + sizeof(lh->thread[0]) * nr_threads);
+       lh = zmalloc<lttng_health>(sizeof(*lh) + sizeof(lh->thread[0]) * nr_threads);
        if (!lh) {
                return NULL;
        }
This page took 0.024698 seconds and 4 git commands to generate.