From: Julian Seward Date: Fri, 30 Sep 2005 10:34:06 +0000 (+0000) Subject: When a sector is full, debug-print TC/TT loading for it, so as to give X-Git-Tag: svn/VALGRIND_3_1_0~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=773c32d9c69b9eb6566cf677c84d9f763db2916e;p=thirdparty%2Fvalgrind.git When a sector is full, debug-print TC/TT loading for it, so as to give better info on sizing decisions. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4837 --- diff --git a/coregrind/m_transtab.c b/coregrind/m_transtab.c index 4362edd7cf..d6b449b0c8 100644 --- a/coregrind/m_transtab.c +++ b/coregrind/m_transtab.c @@ -428,6 +428,15 @@ void VG_(add_to_transtab)( VexGuestExtents* vge, 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", + "declare sector %d full " + "(TT loading %2d%%, TC loading %2d%%)\n", + y, + (100 * sectors[y].tt_n_inuse) + / N_TTES_PER_SECTOR, + (100 * (tc_sector_szQ - tcAvailQ)) + / tc_sector_szQ); youngest_sector++; if (youngest_sector >= N_SECTORS) youngest_sector = 0; @@ -589,7 +598,7 @@ void VG_(discard_translations) ( Addr64 guest_start, ULong range, vg_assert(init_done); - VG_(debugLog)(1, "transtab", + VG_(debugLog)(2, "transtab", "discard_translations(0x%llx, %lld) req by %s\n", guest_start, range, who );