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-relayd
/
ctf-trace.cpp
diff --git
a/src/bin/lttng-relayd/ctf-trace.cpp
b/src/bin/lttng-relayd/ctf-trace.cpp
index 861bcfbb3f7a44c6d055babdc544abc584835dfc..cad67b78e2517296f06e3610b2d7b3d7e25d2ce2 100644
(file)
--- a/
src/bin/lttng-relayd/ctf-trace.cpp
+++ b/
src/bin/lttng-relayd/ctf-trace.cpp
@@
-9,13
+9,13
@@
#define _LGPL_SOURCE
#define _LGPL_SOURCE
-#include <common/common.h>
-#include <common/utils.h>
+#include <common/common.h
pp
>
+#include <common/utils.h
pp
>
#include <urcu/rculist.h>
#include <urcu/rculist.h>
-#include "ctf-trace.h"
-#include "lttng-relayd.h"
-#include "stream.h"
+#include "ctf-trace.h
pp
"
+#include "lttng-relayd.h
pp
"
+#include "stream.h
pp
"
static uint64_t last_relay_ctf_trace_id;
static pthread_mutex_t last_relay_ctf_trace_id_lock = PTHREAD_MUTEX_INITIALIZER;
static uint64_t last_relay_ctf_trace_id;
static pthread_mutex_t last_relay_ctf_trace_id_lock = PTHREAD_MUTEX_INITIALIZER;
@@
-97,7
+97,7
@@
static struct ctf_trace *ctf_trace_create(struct relay_session *session,
{
struct ctf_trace *trace;
{
struct ctf_trace *trace;
- trace =
(ctf_trace *) zmalloc(sizeof(*trace)
);
+ trace =
zmalloc<ctf_trace>(
);
if (!trace) {
PERROR("Failed to allocate ctf_trace");
goto end;
if (!trace) {
PERROR("Failed to allocate ctf_trace");
goto end;
This page took
0.023301 seconds
and
4
git commands to generate.