From 655673f312318a9d95b71ef9f95a59ff36b0a487 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 20 Sep 2013 11:10:56 -0300 Subject: Add catch-all alloc retry probe. for ChangeLog * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe. * manual/probes.texi: Document it. --- malloc/arena.c | 1 + 1 file changed, 1 insertion(+) (limited to 'malloc') diff --git a/malloc/arena.c b/malloc/arena.c index 89e8b926ae..9ace186f5a 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; -- cgit 1.4.1