about summary refs log tree commit diff
path: root/malloc/arena.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2013-09-20 11:10:54 -0300
committerAlexandre Oliva <aoliva@redhat.com>2013-09-20 11:10:54 -0300
commit3ea5be54364ae3344aa7c5c51a1f29f56854b123 (patch)
tree3cee52510a62de3ec43e9531c0eea434a30c9e48 /malloc/arena.c
parent3e181ddac9c1ca204df56eea3dbec414968e182a (diff)
downloadglibc-3ea5be54364ae3344aa7c5c51a1f29f56854b123.tar.gz
glibc-3ea5be54364ae3344aa7c5c51a1f29f56854b123.tar.xz
glibc-3ea5be54364ae3344aa7c5c51a1f29f56854b123.zip
Add first set of memory probes.
for ChangeLog

	* malloc/malloc.c: Include stap-probe.h.
	(__libc_mallopt): Add memory_mallopt probe.
	* malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
	* manual/probes.texi: New.
	* manual/Makefile (chapters): Add probes.
	* manual/threads.texi: Set next node.
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index 12a48ad7ba..0822fc85d5 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -736,6 +736,7 @@ _int_new_arena(size_t size)
   top(a) = (mchunkptr)ptr;
   set_head(top(a), (((char*)h + h->size) - ptr) | PREV_INUSE);
 
+  LIBC_PROBE (memory_arena_new, 2, a, size);
   tsd_setspecific(arena_key, (void *)a);
   mutex_init(&a->mutex);
   (void)mutex_lock(&a->mutex);