Lines Matching refs:caller
146 void *caller[NUM_FRAMES]; member
179 void *caller; member
197 #define SET_CALLER(x,y) if (DO_STATS) ((x)->caller = (y))
287 caller(struct dir_info *d) in caller() function
295 memset(&p.caller, 0, sizeof(p.caller)); in caller()
297 p.caller[0] = __builtin_extract_return_addr( in caller()
299 if (p.caller[0] != NULL && level >= 2) in caller()
300 p.caller[1] = __builtin_extract_return_addr( in caller()
302 if (p.caller[1] != NULL && level >= 3) in caller()
303 p.caller[2] = __builtin_extract_return_addr( in caller()
305 if (p.caller[2] != NULL && level >= 4) in caller()
306 p.caller[3] = __builtin_extract_return_addr( in caller()
312 static inline void* caller(struct dir_info *d) in caller() function
318 memset(&p.caller, 0, sizeof(p.caller)); in caller()
319 p.caller[0] = __builtin_extract_return_addr(__builtin_return_address(0)); in caller()
1232 STATS_SETFN(r, k, d->caller); in malloc_bytes()
1335 void *p, *caller = NULL; in omalloc() local
1352 caller = pool->caller; in omalloc()
1354 if (insert(pool, p, sz, caller)) { in omalloc()
1544 SET_CALLER(d, caller(d)); in malloc()
1559 SET_CALLER(d, caller(d)); in malloc_conceal()
1870 STATS_SETF(r, (*argpool)->caller); in orealloc()
1895 STATS_SETF(r, (*argpool)->caller); in orealloc()
1917 STATS_SETF(r, (*argpool)->caller); in orealloc()
1933 STATS_SETFN(r, chunknum, (*argpool)->caller); in orealloc()
1951 STATS_SETFN(r, chunknum, (*argpool)->caller); in orealloc()
1970 SET_CALLER(d, caller(d)); in realloc()
1991 SET_CALLER(d, caller(d)); in calloc()
2017 SET_CALLER(d, caller(d)); in calloc_conceal()
2163 SET_CALLER(d, caller(d)); in recallocarray()
2231 void *p, *caller = NULL; in omemalign() local
2272 caller = pool->caller; in omemalign()
2274 if (insert(pool, p, sz, caller)) { in omemalign()
2322 SET_CALLER(d, caller(d)); in posix_memalign()
2361 SET_CALLER(d, caller(d)); in aligned_alloc()
2373 return memcmp(e1->caller, e2->caller, sizeof(e1->caller)); in btcmp()
2397 memcpy(p->caller, f->caller, sizeof(p->caller[0]) * DO_STATS); in store_caller()
2422 fabstorel(btnode->caller[frame], buf1, sizeof(buf1)); in print_chunk_details()
2428 fabstorel(btnode->caller[frame], buf2, sizeof(buf2)); in print_chunk_details()
2544 const char *caller; in fabstorel() local
2546 caller = f; in fabstorel()
2547 if (caller != NULL && dladdr(f, &info) != 0) { in fabstorel()
2548 caller -= (uintptr_t)info.dli_fbase; in fabstorel()
2551 snprintf(buf, size, "%s %p", object, caller); in fabstorel()
2571 abscaller = ((struct btnode*)p->d.f)->caller[i]; in dump_leak()