|
From: <sv...@va...> - 2005-09-30 10:34:13
|
Author: sewardj
Date: 2005-09-30 11:34:06 +0100 (Fri, 30 Sep 2005)
New Revision: 4837
Log:
When a sector is full, debug-print TC/TT loading for it, so as to give
better info on sizing decisions.
Modified:
trunk/coregrind/m_transtab.c
Modified: trunk/coregrind/m_transtab.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
--- trunk/coregrind/m_transtab.c 2005-09-30 10:32:39 UTC (rev 4836)
+++ trunk/coregrind/m_transtab.c 2005-09-30 10:34:06 UTC (rev 4837)
@@ -428,6 +428,15 @@
used before, in which case it will get its tt/tc allocated
now, or it has been used before, in which case it is set to be
empty, hence throwing out the oldest sector. */
+ vg_assert(tc_sector_szQ > 0);
+ VG_(debugLog)(1,"transtab",=20
+ "declare sector %d full "
+ "(TT loading %2d%%, TC loading %2d%%)\n",
+ y,
+ (100 * sectors[y].tt_n_inuse)=20
+ / N_TTES_PER_SECTOR,
+ (100 * (tc_sector_szQ - tcAvailQ))=20
+ / tc_sector_szQ);
youngest_sector++;
if (youngest_sector >=3D N_SECTORS)
youngest_sector =3D 0;
@@ -589,7 +598,7 @@
=20
vg_assert(init_done);
=20
- VG_(debugLog)(1, "transtab",
+ VG_(debugLog)(2, "transtab",
"discard_translations(0x%llx, %lld) req by %s\n",
guest_start, range, who );
=20
|