diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-09-30 10:34:06 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-09-30 10:34:06 +0000 |
commit | a16ea0a5fa05dac343e63feddf63f51cb0c340bd (patch) | |
tree | 71ad6115a7292903751f2ba534b5c395eeb3e320 /coregrind/m_transtab.c | |
parent | ca7a4755b0cc14b4dd72cedc5c685a9d82b04b49 (diff) |
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 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'coregrind/m_transtab.c')
-rw-r--r-- | coregrind/m_transtab.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/coregrind/m_transtab.c b/coregrind/m_transtab.c index 4362edd7..d6b449b0 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 ); |