projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
dispatch.cpp
diff --git
a/src/bin/lttng-sessiond/dispatch.cpp
b/src/bin/lttng-sessiond/dispatch.cpp
index b4092eb44793bc454641b1cf12ba5e60567bc419..89d7c7c2e0d1fb894b02f10d7b17223ebbef9bee 100644
(file)
--- a/
src/bin/lttng-sessiond/dispatch.cpp
+++ b/
src/bin/lttng-sessiond/dispatch.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2011
David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011
EfficiOS Inc.
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
@@
-10,16
+10,16
@@
#include <stddef.h>
#include <stdlib.h>
#include <urcu.h>
#include <stddef.h>
#include <stdlib.h>
#include <urcu.h>
-#include <common/futex.h>
-#include <common/macros.h>
+#include <common/futex.h
pp
>
+#include <common/macros.h
pp
>
-#include "dispatch.h"
-#include "ust-app.h"
-#include "testpoint.h"
-#include "fd-limit.h"
-#include "health-sessiond.h"
-#include "lttng-sessiond.h"
-#include "thread.h"
+#include "dispatch.h
pp
"
+#include "ust-app.h
pp
"
+#include "testpoint.h
pp
"
+#include "fd-limit.h
pp
"
+#include "health-sessiond.h
pp
"
+#include "lttng-sessiond.h
pp
"
+#include "thread.h
pp
"
struct thread_notifiers {
struct ust_cmd_queue *ust_cmd_queue;
struct thread_notifiers {
struct ust_cmd_queue *ust_cmd_queue;
@@
-231,6
+231,7
@@
static void *thread_dispatch_ust_registration(void *data)
struct ust_reg_wait_node *wait_node = NULL, *tmp_wait_node;
struct ust_reg_wait_queue wait_queue = {
.count = 0,
struct ust_reg_wait_node *wait_node = NULL, *tmp_wait_node;
struct ust_reg_wait_queue wait_queue = {
.count = 0,
+ .head = {},
};
struct thread_notifiers *notifiers = (thread_notifiers *) data;
};
struct thread_notifiers *notifiers = (thread_notifiers *) data;
@@
-291,7
+292,7
@@
static void *thread_dispatch_ust_registration(void *data)
ust_cmd->reg_msg.major, ust_cmd->reg_msg.minor);
if (ust_cmd->reg_msg.type == LTTNG_UST_CTL_SOCKET_CMD) {
ust_cmd->reg_msg.major, ust_cmd->reg_msg.minor);
if (ust_cmd->reg_msg.type == LTTNG_UST_CTL_SOCKET_CMD) {
- wait_node =
(ust_reg_wait_node *) zmalloc(sizeof(*wait_node)
);
+ wait_node =
zmalloc<ust_reg_wait_node>(
);
if (!wait_node) {
PERROR("zmalloc wait_node dispatch");
ret = close(ust_cmd->sock);
if (!wait_node) {
PERROR("zmalloc wait_node dispatch");
ret = close(ust_cmd->sock);
@@
-509,7
+510,7
@@
bool launch_ust_dispatch_thread(struct ust_cmd_queue *cmd_queue,
struct lttng_thread *thread;
struct thread_notifiers *notifiers;
struct lttng_thread *thread;
struct thread_notifiers *notifiers;
- notifiers =
(thread_notifiers *) zmalloc(sizeof(*notifiers)
);
+ notifiers =
zmalloc<thread_notifiers>(
);
if (!notifiers) {
goto error;
}
if (!notifiers) {
goto error;
}
This page took
0.025919 seconds
and
4
git commands to generate.