diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2013-09-20 11:10:55 -0300 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2013-09-20 11:48:45 -0300 |
commit | 6999d38c953e568f0488572c0a68cba32286a2c3 (patch) | |
tree | 99a89852bc0690da122ed6795fae947ff38ce69b /malloc/malloc.c | |
parent | 0653427fdb5b70b8e1fc6189b0e7bdfc6ec920d6 (diff) | |
download | glibc-6999d38c953e568f0488572c0a68cba32286a2c3.tar.gz glibc-6999d38c953e568f0488572c0a68cba32286a2c3.tar.xz glibc-6999d38c953e568f0488572c0a68cba32286a2c3.zip |
Add probes for malloc arena changes.
for ChangeLog * malloc/arena.c (get_free_list): Add probe memory_arena_reuse_free_list. (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait and memory_arena_reuse. (arena_get2) [!PER_THREAD]: Likewise. * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe memory_arena_reuse_realloc. * manual/probes.texi: Document them.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r-- | malloc/malloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 8f1ddf3834..c5b3c7cae8 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -2977,6 +2977,7 @@ __libc_realloc(void* oldmem, size_t bytes) #endif #if !defined PER_THREAD + LIBC_PROBE (memory_arena_reuse_realloc, 1, ar_ptr); /* As in malloc(), remember this arena for the next allocation. */ tsd_setspecific(arena_key, (void *)ar_ptr); #endif |