olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1103856.patch

00db10
commit 4d653a59ffeae0f46f76a40230e2cfa9587b7e7e
00db10
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
00db10
Date:   Fri May 30 22:43:52 2014 +0530
00db10
00db10
    Add mmap usage in malloc_info output
00db10
    
00db10
    The current malloc_info xml output only has information about
00db10
    allocations on the heap.  Display information about number of mappings
00db10
    and total mmapped size to this to complete the picture.
00db10
00db10
diff -pruN glibc-2.17-c758a686/malloc/malloc.c glibc-2.17-c758a686/malloc/malloc.c
00db10
--- glibc-2.17-c758a686/malloc/malloc.c	2014-06-02 07:35:22.573256155 +0530
00db10
+++ glibc-2.17-c758a686/malloc/malloc.c	2014-06-02 07:34:58.856257177 +0530
00db10
@@ -6553,12 +6553,14 @@ malloc_info (int options, FILE *fp)
00db10
   fprintf (fp,
00db10
 	   "<total type=\"fast\" count=\"%zu\" size=\"%zu\"/>\n"
00db10
 	   "<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
00db10
+	   "<total type=\"mmap\" count=\"%d\" size=\"%zu\"/>\n"
00db10
 	   "<system type=\"current\" size=\"%zu\"/>\n"
00db10
 	   "<system type=\"max\" size=\"%zu\"/>\n"
00db10
 	   "<aspace type=\"total\" size=\"%zu\"/>\n"
00db10
 	   "<aspace type=\"mprotect\" size=\"%zu\"/>\n"
00db10
 	   "</malloc>\n",
00db10
 	   total_nfastblocks, total_fastavail, total_nblocks, total_avail,
00db10
+	   mp_.n_mmaps, mp_.mmapped_mem,
00db10
 	   total_system, total_max_system,
00db10
 	   total_aspace, total_aspace_mprotect);
00db10