ust: be able to list markers using ust
[ust.git] / libmallocwrap / mallocwrap.c
index 48dab0aef7dc23127fc748345ab754635bf92324..de1d0f139c11601b9b3e580723440c5f55379d13 100644 (file)
@@ -3,6 +3,8 @@
 #include <sys/types.h>
 #include <stdio.h>
 
+#include "marker.h"
+
 void *(*plibc_malloc)(size_t size) = NULL;
 
 void *malloc(size_t size)
@@ -14,6 +16,11 @@ void *malloc(size_t size)
                        return NULL;
                }
        }
+
+       trace_mark(ust, malloc, "%d", (int)size);
+
        fprintf(stderr, "mallocating size %d\n", size);
        return plibc_malloc(size);
 }
+
+MARKER_LIB
This page took 0.023011 seconds and 4 git commands to generate.