projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Use negative value for error code of lttng_ust_ctl_duplicate_ust_object_data
[lttng-ust.git]
/
src
/
lib
/
lttng-ust-libc-wrapper
/
lttng-ust-malloc.c
diff --git
a/src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
b/src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
index 3243693d84ca65c2ef4180401a420aad47a8a2a4..3951f5b0fa3111283b71b7021fc67a9f16f5ee73 100644
(file)
--- a/
src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
+++ b/
src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
@@
-30,9
+30,12
@@
#include "common/macros.h"
#include "common/align.h"
#include "common/macros.h"
#include "common/align.h"
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
#define LTTNG_UST_TRACEPOINT_DEFINE
#define LTTNG_UST_TRACEPOINT_DEFINE
-#define TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM ip
+#define
LTTNG_UST_
TRACEPOINT_CREATE_PROBES
+#define
LTTNG_UST_
TP_IP_PARAM ip
#include "ust_libc.h"
#define STATIC_CALLOC_LEN 4096
#include "ust_libc.h"
#define STATIC_CALLOC_LEN 4096
@@
-423,7
+426,7
@@
int posix_memalign(void **memptr, size_t alignment, size_t size)
}
static
}
static
-void lttng_ust_
fixup_malloc_nesting
_tls(void)
+void lttng_ust_
malloc_nesting_alloc
_tls(void)
{
asm volatile ("" : : "m" (URCU_TLS(malloc_nesting)));
}
{
asm volatile ("" : : "m" (URCU_TLS(malloc_nesting)));
}
@@
-434,7
+437,7
@@
void lttng_ust_libc_wrapper_malloc_ctor(void)
if (cur_alloc.calloc) {
return;
}
if (cur_alloc.calloc) {
return;
}
- lttng_ust_
fixup_malloc_nesting
_tls();
+ lttng_ust_
malloc_nesting_alloc
_tls();
/*
* Ensure the allocator is in place before the process becomes
* multithreaded.
/*
* Ensure the allocator is in place before the process becomes
* multithreaded.
This page took
0.028039 seconds
and
4
git commands to generate.