Lines Matching refs:mallstream

35 static FILE *mallstream;  variable
66 fprintf (mallstream, "@ %s%s%s[0x%" PRIxPTR "] ", in tr_where()
71 fprintf (mallstream, "@ [%p] ", caller); in tr_where()
83 flockfile (mallstream); in lock_and_info()
98 fprintf (mallstream, "- %p\n", ptr); in free_mtrace()
99 funlockfile (mallstream); in free_mtrace()
110 fprintf (mallstream, "+ %p %#lx\n", block, (unsigned long int) size); in malloc_mtrace_after()
112 funlockfile (mallstream); in malloc_mtrace_after()
127 fprintf (mallstream, "! %p %#lx\n", oldptr, (unsigned long int) size); in realloc_mtrace_after()
129 fprintf (mallstream, "- %p\n", oldptr); in realloc_mtrace_after()
132 fprintf (mallstream, "+ %p %#lx\n", block, (unsigned long int) size); in realloc_mtrace_after()
135 fprintf (mallstream, "< %p\n", oldptr); in realloc_mtrace_after()
137 fprintf (mallstream, "> %p %#lx\n", block, (unsigned long int) size); in realloc_mtrace_after()
140 funlockfile (mallstream); in realloc_mtrace_after()
151 fprintf (mallstream, "+ %p %#lx\n", block, (unsigned long int) size); in memalign_mtrace_after()
153 funlockfile (mallstream); in memalign_mtrace_after()
163 if (mallstream != NULL) in release_libc_mem()
176 if (mallstream != NULL) in do_mtrace()
182 mallstream = fopen (mallfile != NULL ? mallfile : "/dev/null", "wce"); in do_mtrace()
183 if (mallstream != NULL) in do_mtrace()
188 setvbuf (mallstream, tracebuf, _IOFBF, sizeof (tracebuf)); in do_mtrace()
189 fprintf (mallstream, "= Start\n"); in do_mtrace()
205 if (mallstream == NULL) in do_muntrace()
211 FILE *f = mallstream; in do_muntrace()
212 mallstream = NULL; in do_muntrace()