projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint API namespacing 'TP_IP_PARAM'
[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 a93c7c1a016742ef54a7b87eedb1bbb2bd9a2e50..19c603408cc85ca7e01db81d9fbeefcc7f21c385 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,9
@@
#include "common/macros.h"
#include "common/align.h"
#include "common/macros.h"
#include "common/align.h"
-#define TRACEPOINT_DEFINE
-#define TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM ip
+#define
LTTNG_UST_
TRACEPOINT_DEFINE
+#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
@@
-268,7
+268,7
@@
void *malloc(size_t size)
}
retval = cur_alloc.malloc(size);
if (URCU_TLS(malloc_nesting) == 1) {
}
retval = cur_alloc.malloc(size);
if (URCU_TLS(malloc_nesting) == 1) {
- tracepoint(lttng_ust_libc, malloc,
+
lttng_ust_
tracepoint(lttng_ust_libc, malloc,
size, retval, LTTNG_UST_CALLER_IP());
}
URCU_TLS(malloc_nesting)--;
size, retval, LTTNG_UST_CALLER_IP());
}
URCU_TLS(malloc_nesting)--;
@@
-288,7
+288,7
@@
void free(void *ptr)
}
if (URCU_TLS(malloc_nesting) == 1) {
}
if (URCU_TLS(malloc_nesting) == 1) {
- tracepoint(lttng_ust_libc, free,
+
lttng_ust_
tracepoint(lttng_ust_libc, free,
ptr, LTTNG_UST_CALLER_IP());
}
ptr, LTTNG_UST_CALLER_IP());
}
@@
-318,7
+318,7
@@
void *calloc(size_t nmemb, size_t size)
}
retval = cur_alloc.calloc(nmemb, size);
if (URCU_TLS(malloc_nesting) == 1) {
}
retval = cur_alloc.calloc(nmemb, size);
if (URCU_TLS(malloc_nesting) == 1) {
- tracepoint(lttng_ust_libc, calloc,
+
lttng_ust_
tracepoint(lttng_ust_libc, calloc,
nmemb, size, retval, LTTNG_UST_CALLER_IP());
}
URCU_TLS(malloc_nesting)--;
nmemb, size, retval, LTTNG_UST_CALLER_IP());
}
URCU_TLS(malloc_nesting)--;
@@
-371,7
+371,7
@@
void *realloc(void *ptr, size_t size)
retval = cur_alloc.realloc(ptr, size);
end:
if (URCU_TLS(malloc_nesting) == 1) {
retval = cur_alloc.realloc(ptr, size);
end:
if (URCU_TLS(malloc_nesting) == 1) {
- tracepoint(lttng_ust_libc, realloc,
+
lttng_ust_
tracepoint(lttng_ust_libc, realloc,
ptr, size, retval, LTTNG_UST_CALLER_IP());
}
URCU_TLS(malloc_nesting)--;
ptr, size, retval, LTTNG_UST_CALLER_IP());
}
URCU_TLS(malloc_nesting)--;
@@
-392,7
+392,7
@@
void *memalign(size_t alignment, size_t size)
}
retval = cur_alloc.memalign(alignment, size);
if (URCU_TLS(malloc_nesting) == 1) {
}
retval = cur_alloc.memalign(alignment, size);
if (URCU_TLS(malloc_nesting) == 1) {
- tracepoint(lttng_ust_libc, memalign,
+
lttng_ust_
tracepoint(lttng_ust_libc, memalign,
alignment, size, retval,
LTTNG_UST_CALLER_IP());
}
alignment, size, retval,
LTTNG_UST_CALLER_IP());
}
@@
-414,7
+414,7
@@
int posix_memalign(void **memptr, size_t alignment, size_t size)
}
retval = cur_alloc.posix_memalign(memptr, alignment, size);
if (URCU_TLS(malloc_nesting) == 1) {
}
retval = cur_alloc.posix_memalign(memptr, alignment, size);
if (URCU_TLS(malloc_nesting) == 1) {
- tracepoint(lttng_ust_libc, posix_memalign,
+
lttng_ust_
tracepoint(lttng_ust_libc, posix_memalign,
*memptr, alignment, size,
retval, LTTNG_UST_CALLER_IP());
}
*memptr, alignment, size,
retval, LTTNG_UST_CALLER_IP());
}
@@
-428,7
+428,7
@@
void lttng_ust_fixup_malloc_nesting_tls(void)
asm volatile ("" : : "m" (URCU_TLS(malloc_nesting)));
}
asm volatile ("" : : "m" (URCU_TLS(malloc_nesting)));
}
-void lttng_ust_libc_wrapper_malloc_
init
(void)
+void lttng_ust_libc_wrapper_malloc_
ctor
(void)
{
/* Initialization already done */
if (cur_alloc.calloc) {
{
/* Initialization already done */
if (cur_alloc.calloc) {
This page took
0.027038 seconds
and
4
git commands to generate.