projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ust: be able to list markers using ust
[ust.git]
/
libmallocwrap
/
mallocwrap.c
diff --git
a/libmallocwrap/mallocwrap.c
b/libmallocwrap/mallocwrap.c
index 48dab0aef7dc23127fc748345ab754635bf92324..de1d0f139c11601b9b3e580723440c5f55379d13 100644
(file)
--- a/
libmallocwrap/mallocwrap.c
+++ b/
libmallocwrap/mallocwrap.c
@@
-3,6
+3,8
@@
#include <sys/types.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdio.h>
+#include "marker.h"
+
void *(*plibc_malloc)(size_t size) = NULL;
void *malloc(size_t size)
void *(*plibc_malloc)(size_t size) = NULL;
void *malloc(size_t size)
@@
-14,6
+16,11
@@
void *malloc(size_t size)
return NULL;
}
}
return NULL;
}
}
+
+ trace_mark(ust, malloc, "%d", (int)size);
+
fprintf(stderr, "mallocating size %d\n", size);
return plibc_malloc(size);
}
fprintf(stderr, "mallocating size %d\n", size);
return plibc_malloc(size);
}
+
+MARKER_LIB
This page took
0.023488 seconds
and
4
git commands to generate.