Search
lxdream.org :: lxdream/src/xlat/xltcache.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/xltcache.h
changeset 1188:1cc9bb0b3848
prev1186:2dc47c67bb93
next1195:072131b61d2a
author Nathan Keynes <nkeynes@lxdream.org>
date Thu Dec 01 01:50:44 2011 +1000 (8 years ago)
permissions -rw-r--r--
last change Rearrange the profile dump code so as to avoid xlat => SH4 references
file annotate diff log raw
1.1 --- a/src/xlat/xltcache.h Tue Nov 29 17:11:40 2011 +1000
1.2 +++ b/src/xlat/xltcache.h Thu Dec 01 01:50:44 2011 +1000
1.3 @@ -183,10 +183,21 @@
1.4 void xlat_check_integrity();
1.5
1.6 /**
1.7 - * Dump out the top N translated blocks by number of executions (requires block
1.8 + * Short record with block + pc, used for activity dumps
1.9 + */
1.10 +typedef struct xlat_block_ref {
1.11 + xlat_cache_block_t block;
1.12 + uint32_t pc;
1.13 +} *xlat_block_ref_t;
1.14 +
1.15 +/**
1.16 + * Fetch the top numRecords translated blocks by number of executions (requires block
1.17 * profiling to be turned on in order to give meaningful results).
1.18 - * @param topN Number of blocks to print. If 0, print all blocks in the cache
1.19 + * @param topN Number of blocks to print.
1.20 + * @return the number of records retrieved
1.21 */
1.22 +unsigned int xlat_get_cache_blocks_by_activity( xlat_block_ref_t records, size_t numRecords );
1.23 +
1.24 void xlat_dump_cache_by_activity( unsigned int topN );
1.25
1.26 #endif /* lxdream_xltcache_H */
.