summaryrefslogtreecommitdiff
path: root/configs/example/memtest.py
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-02-16 03:35:23 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2015-02-16 03:35:23 -0500
commitf18d2120fa66803912dcce61fe6c704a6a05a2d1 (patch)
treec4a9ff8f4c66d1ebd95b63e6ac161c9c7e38a4ab /configs/example/memtest.py
parent8c78aa31ea6032d52ecf662f4f11860d995cd5b3 (diff)
downloadgem5-f18d2120fa66803912dcce61fe6c704a6a05a2d1.tar.xz
config: Add memcheck stress test
This is a rather unfortunate copy of the memtest.py example script, that actually stresses the system with true sharing as opposed to the false sharing of the MemTest. To do so it uses TrafficGen instances to generate the reads/writes, and MemCheckerMonitor combined with the MemChecker to check the validity of the read/written values. As a bonus, this script also enables the addition of prefetchers, and the traffic is created to have a mix of random addresses and linear strides. We use the TaggedPrefetcher since the packets do not have a request with a PC. At the moment the code is almost identical to the memtest.py script, and no effort has been made to factor out the construction of the tree. The challenge is that the instantiation and connection of the testers and monitors is done as part of the tree building.
Diffstat (limited to 'configs/example/memtest.py')
-rw-r--r--configs/example/memtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/example/memtest.py b/configs/example/memtest.py
index 71053f90b..6c1e657e4 100644
--- a/configs/example/memtest.py
+++ b/configs/example/memtest.py
@@ -110,7 +110,7 @@ if args:
block_size = 64
-# Start by partins the command line options and do some basic sanity
+# Start by parsing the command line options and do some basic sanity
# checking
try:
cachespec = [int(x) for x in options.caches.split(':')]