8 void *(*plibc_malloc
)(size_t size
) = NULL
;
10 void *malloc(size_t size
)
12 if(plibc_malloc
== NULL
) {
13 plibc_malloc
= dlsym(RTLD_NEXT
, "malloc");
14 if(plibc_malloc
== NULL
) {
15 fprintf(stderr
, "mallocwrap: unable to find malloc\n");
20 trace_mark(ust
, malloc
, "%d", (int)size
);
22 fprintf(stderr
, "mallocating size %d\n", size
);
23 return plibc_malloc(size
);
This page took 0.029824 seconds and 4 git commands to generate.