*
*/
-#include <type_traits>
+#include <lttng/domain.h>
+#include <lttng/lttng-error.h>
-#include "lttng-ctl-helper.h"
-#include "lttng/domain.h"
-#include "lttng/lttng-error.h"
-#include <common/sessiond-comm/sessiond-comm.h>
-#include <common/tracker.h>
+#include "lttng-ctl-helper.hpp"
+#include <common/sessiond-comm/sessiond-comm.hpp>
+#include <common/tracker.hpp>
#include <lttng/tracker.h>
+#include <type_traits>
struct lttng_process_attr_tracker_handle {
char *session_name;
goto error;
}
- handle = (lttng_process_attr_tracker_handle *) zmalloc(sizeof(*handle));
+ handle = zmalloc<lttng_process_attr_tracker_handle>();
if (!handle) {
ret_code = LTTNG_ERR_NOMEM;
goto error;
goto end;
}
- pid_array = (int32_t *) zmalloc(pid_count * sizeof(int32_t));
+ pid_array = calloc<int32_t>(pid_count);
if (!pid_array) {
ret_code = LTTNG_ERR_NOMEM;
goto end;