From cbd65e95dba33c0c88411b11c3e864cbc2567bbf Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 5 Jul 2010 21:39:38 -0700 Subject: util: add a script for testing checkpointing See comments in util/checkpoint-tester.py for details. --- configs/common/Simulation.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configs') diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 1c9d4ff4e..905e435d3 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -292,6 +292,16 @@ def run(options, root, testsys, cpu_class): num_checkpoints = 0 exit_cause = '' + # If we're taking and restoring checkpoints, use checkpoint_dir + # option only for finding the checkpoints to restore from. This + # lets us test checkpointing by restoring from one set of + # checkpoints, generating a second set, and then comparing them. + if options.take_checkpoints and options.checkpoint_restore: + if m5.options.outdir: + cptdir = m5.options.outdir + else: + cptdir = getcwd() + # Checkpoints being taken via the command line at and at # subsequent periods of . Checkpoint instructions # received from the benchmark running are ignored and skipped in -- cgit v1.2.3