|
From: <sv...@va...> - 2006-10-04 02:08:20
|
Author: sewardj
Date: 2006-10-04 03:08:13 +0100 (Wed, 04 Oct 2006)
New Revision: 6168
Log:
Implement VG_(am_get_anonsize_total).
Modified:
branches/AIX5/coregrind/m_aspacemgr/aspacemgr-aix5.c
Modified: branches/AIX5/coregrind/m_aspacemgr/aspacemgr-aix5.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/AIX5/coregrind/m_aspacemgr/aspacemgr-aix5.c 2006-10-04 02:02=
:43 UTC (rev 6167)
+++ branches/AIX5/coregrind/m_aspacemgr/aspacemgr-aix5.c 2006-10-04 02:08=
:13 UTC (rev 6168)
@@ -1413,7 +1413,16 @@
out-of-memory messages. */
ULong VG_(am_get_anonsize_total)( void )
{
- return 0;
+ Int i;
+ ULong total =3D 0;
+ for (i =3D 0; i < asegs_pri.used; i++) {
+ if (asegs_pri.seg[i].kind =3D=3D ASkAnonC=20
+ || asegs_pri.seg[i].kind =3D=3D ASkAnonV) {
+ total +=3D (ULong)asegs_pri.seg[i].end
+ - (ULong)asegs_pri.seg[i].start + 1ULL;
+ }
+ }
+ return total;
}
=20
=20
|