mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* malloc/malloc.c (malloc_info): Output address space information.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-18 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.c (malloc_info): Output address space information.
|
||||||
|
|
||||||
2009-04-17 Ulrich Drepper <drepper@redhat.com>
|
2009-04-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* malloc/malloc.c (malloc_info): Also output system memory information.
|
* malloc/malloc.c (malloc_info): Also output system memory information.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-18 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* SUPPORTED: Add ks_IN.
|
||||||
|
|
||||||
2009-04-07 Ulrich Drepper <drepper@redhat.com>
|
2009-04-07 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* locales/ks_IN@devanagari: Replace duplicated information with copy.
|
* locales/ks_IN@devanagari: Replace duplicated information with copy.
|
||||||
|
@ -258,6 +258,7 @@ km_KH/UTF-8 \
|
|||||||
kn_IN/UTF-8 \
|
kn_IN/UTF-8 \
|
||||||
ko_KR.EUC-KR/EUC-KR \
|
ko_KR.EUC-KR/EUC-KR \
|
||||||
ko_KR.UTF-8/UTF-8 \
|
ko_KR.UTF-8/UTF-8 \
|
||||||
|
ks_IN/UTF-8 \
|
||||||
ks_IN@devanagari/UTF-8 \
|
ks_IN@devanagari/UTF-8 \
|
||||||
ku_TR.UTF-8/UTF-8 \
|
ku_TR.UTF-8/UTF-8 \
|
||||||
ku_TR/ISO-8859-9 \
|
ku_TR/ISO-8859-9 \
|
||||||
|
@ -6251,6 +6251,8 @@ malloc_info (int options, FILE *fp)
|
|||||||
size_t total_fastavail = 0;
|
size_t total_fastavail = 0;
|
||||||
size_t total_system = 0;
|
size_t total_system = 0;
|
||||||
size_t total_max_system = 0;
|
size_t total_max_system = 0;
|
||||||
|
size_t total_aspace = 0;
|
||||||
|
size_t total_aspace_mprotect = 0;
|
||||||
|
|
||||||
void mi_arena (mstate ar_ptr)
|
void mi_arena (mstate ar_ptr)
|
||||||
{
|
{
|
||||||
@ -6363,10 +6365,31 @@ malloc_info (int options, FILE *fp)
|
|||||||
"</sizes>\n<total type=\"fast\" count=\"%zu\" size=\"%zu\"/>\n"
|
"</sizes>\n<total type=\"fast\" count=\"%zu\" size=\"%zu\"/>\n"
|
||||||
"<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
|
"<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
|
||||||
"<system type=\"current\" size=\"%zu\"/>\n"
|
"<system type=\"current\" size=\"%zu\"/>\n"
|
||||||
"<system type=\"max\" size=\"%zu\"/>\n"
|
"<system type=\"max\" size=\"%zu\"/>\n",
|
||||||
"</heap>\n",
|
|
||||||
nfastblocks, fastavail, nblocks, avail,
|
nfastblocks, fastavail, nblocks, avail,
|
||||||
ar_ptr->system_mem, ar_ptr->max_system_mem);
|
ar_ptr->system_mem, ar_ptr->max_system_mem);
|
||||||
|
|
||||||
|
if (ar_ptr != &main_arena)
|
||||||
|
{
|
||||||
|
heap_info *heap = heap_for_ptr(top(ar_ptr));
|
||||||
|
fprintf (fp,
|
||||||
|
"<aspace type=\"total\" size=\"%zu\"/>\n"
|
||||||
|
"<aspace type=\"mprotect\" size=\"%zu\"/>\n",
|
||||||
|
heap->size, heap->mprotect_size);
|
||||||
|
total_aspace += heap->size;
|
||||||
|
total_aspace_mprotect += heap->mprotect_size;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fprintf (fp,
|
||||||
|
"<aspace type=\"total\" size=\"%zu\"/>\n"
|
||||||
|
"<aspace type=\"mprotect\" size=\"%zu\"/>\n",
|
||||||
|
ar_ptr->system_mem, ar_ptr->system_mem);
|
||||||
|
total_aspace += ar_ptr->system_mem;
|
||||||
|
total_aspace_mprotect += ar_ptr->system_mem;
|
||||||
|
}
|
||||||
|
|
||||||
|
fputs ("</heap>\n", fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
fputs ("<malloc version=\"1\">\n", fp);
|
fputs ("<malloc version=\"1\">\n", fp);
|
||||||
@ -6385,9 +6408,12 @@ malloc_info (int options, FILE *fp)
|
|||||||
"<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
|
"<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
|
||||||
"<system type=\"current\" size=\"%zu\n/>\n"
|
"<system type=\"current\" size=\"%zu\n/>\n"
|
||||||
"<system type=\"max\" size=\"%zu\n/>\n"
|
"<system type=\"max\" size=\"%zu\n/>\n"
|
||||||
|
"<aspace type=\"total\" size=\"%zu\"/>\n"
|
||||||
|
"<aspace type=\"mprotect\" size=\"%zu\"/>\n"
|
||||||
"</malloc>\n",
|
"</malloc>\n",
|
||||||
total_nfastblocks, total_fastavail, total_nblocks, total_avail,
|
total_nfastblocks, total_fastavail, total_nblocks, total_avail,
|
||||||
total_system, total_max_system);
|
total_system, total_max_system,
|
||||||
|
total_aspace, total_aspace_mprotect);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user