]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/glibc/glibc-rh1027261.patch
lcdproc: Update to 0.5.7
[ipfire-2.x.git] / src / patches / glibc / glibc-rh1027261.patch
1 commit 4d653a59ffeae0f46f76a40230e2cfa9587b7e7e
2 Author: Siddhesh Poyarekar <siddhesh@redhat.com>
3 Date: Fri May 30 22:43:52 2014 +0530
4
5 Add mmap usage in malloc_info output
6
7 The current malloc_info xml output only has information about
8 allocations on the heap. Display information about number of mappings
9 and total mmapped size to this to complete the picture.
10
11 diff -pruN a/malloc/malloc.c b/malloc/malloc.c
12 --- a/malloc/malloc.c 2014-06-02 07:35:22.573256155 +0530
13 +++ b/malloc/malloc.c 2014-06-02 07:34:58.856257177 +0530
14 @@ -6553,12 +6553,14 @@ malloc_info (int options, FILE *fp)
15 fprintf (fp,
16 "<total type=\"fast\" count=\"%zu\" size=\"%zu\"/>\n"
17 "<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
18 + "<total type=\"mmap\" count=\"%d\" size=\"%zu\"/>\n"
19 "<system type=\"current\" size=\"%zu\"/>\n"
20 "<system type=\"max\" size=\"%zu\"/>\n"
21 "<aspace type=\"total\" size=\"%zu\"/>\n"
22 "<aspace type=\"mprotect\" size=\"%zu\"/>\n"
23 "</malloc>\n",
24 total_nfastblocks, total_fastavail, total_nblocks, total_avail,
25 + mp_.n_mmaps, mp_.mmapped_mem,
26 total_system, total_max_system,
27 total_aspace, total_aspace_mprotect);
28