summaryrefslogtreecommitdiff
path: root/src/mem/cache/SConscript
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2015-12-31 09:32:09 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2015-12-31 09:32:09 -0800
commit6caa2c9b4ea8ed3a29c44dec60b791344b5fd477 (patch)
tree6d55e3abf6bf9a2b756e3fb127a4bb4f135b8ab5 /src/mem/cache/SConscript
parentc153b669fd5b19b45fe5a37484a64b88ee4905db (diff)
downloadgem5-6caa2c9b4ea8ed3a29c44dec60b791344b5fd477.tar.xz
mem: add CacheVerbose debug flag, filter noisy DPRINTFs
Some of the DPRINTFs added to the classic cache in cset 45df88079f04, while useful to those unfamiliar with the cache code, end up being noise when you're familiar with the code but are trying to debug tricky protocol issues. (Particularly getting two messages from each cache as it receives a snoop request then declares that there was no match.) This patch introduces a CacheVerbose debug flag, and moves a subset of the added DPRINTFs into that category, so that Cache by itself returns to being a more succinct summary of cache activity. Also added a CacheAll compound flag to turn on all the cache-related debug flags (other than CacheTags, which you *really* have to want badly to turn it on, IMO).
Diffstat (limited to 'src/mem/cache/SConscript')
-rw-r--r--src/mem/cache/SConscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/cache/SConscript b/src/mem/cache/SConscript
index 1c356ef6a..01f099f1b 100644
--- a/src/mem/cache/SConscript
+++ b/src/mem/cache/SConscript
@@ -42,4 +42,12 @@ DebugFlag('Cache')
DebugFlag('CachePort')
DebugFlag('CacheRepl')
DebugFlag('CacheTags')
+DebugFlag('CacheVerbose')
DebugFlag('HWPrefetch')
+
+# CacheTags is so outrageously verbose, printing the cache's entire tag
+# array on each timing access, that you should probably have to ask for
+# it explicitly even above and beyond CacheAll.
+CompoundFlag('CacheAll', ['Cache', 'CachePort', 'CacheRepl', 'CacheVerbose',
+ 'HWPrefetch'])
+