aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2013-09-20 11:10:56 -0300
committerAlexandre Oliva <aoliva@redhat.com>2013-09-20 11:50:51 -0300
commit655673f312318a9d95b71ef9f95a59ff36b0a487 (patch)
tree3ed596f23e733083b72887c20ef60852a04a767a /malloc
parent35fed6f15d3d29c02203a3fe2e446e205d45b0ff (diff)
downloadglibc-655673f312318a9d95b71ef9f95a59ff36b0a487.zip
glibc-655673f312318a9d95b71ef9f95a59ff36b0a487.tar.gz
glibc-655673f312318a9d95b71ef9f95a59ff36b0a487.tar.bz2
Add catch-all alloc retry probe.
for ChangeLog * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe. * manual/probes.texi: Document it.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/arena.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index 89e8b92..9ace186 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -932,6 +932,7 @@ arena_get2(mstate a_tsd, size_t size, mstate avoid_arena)
static mstate
arena_get_retry (mstate ar_ptr, size_t bytes)
{
+ LIBC_PROBE (memory_arena_retry, 2, bytes, ar_ptr);
if(ar_ptr != &main_arena) {
(void)mutex_unlock(&ar_ptr->mutex);
ar_ptr = &main_arena;