*/
#include "lttng/tracker.h"
-#include "common/dynamic-array.h"
-#include "common/macros.h"
+#include "common/dynamic-array.hpp"
+#include "common/macros.hpp"
#define _LGPL_SOURCE
#include <grp.h>
#include <pwd.h>
#include <urcu/list.h>
#include <urcu/rculfhash.h>
-#include "tracker.h"
-#include <common/defaults.h>
-#include <common/error.h>
-#include <common/hashtable/hashtable.h>
-#include <common/hashtable/utils.h>
-#include <common/tracker.h>
+#include "tracker.hpp"
+#include <common/defaults.hpp>
+#include <common/error.hpp>
+#include <common/hashtable/hashtable.hpp>
+#include <common/hashtable/utils.hpp>
+#include <common/tracker.hpp>
#include <lttng/lttng-error.h>
struct process_attr_tracker_value_node {
{
struct process_attr_tracker *tracker;
- tracker = (process_attr_tracker *) zmalloc(sizeof(*tracker));
+ tracker = zmalloc<process_attr_tracker>();
if (!tracker) {
return NULL;
}
goto end;
}
- value_node = (process_attr_tracker_value_node *) zmalloc(sizeof(*value_node));
+ value_node = zmalloc<process_attr_tracker_value_node>();
if (!value_node) {
status = PROCESS_ATTR_TRACKER_STATUS_ERROR;
goto end;