summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2005-03-09 00:22:42 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2005-03-09 00:22:42 -0500
commitde540a4aeebb512d663daa1342593ddc3cf76e3b (patch)
tree5c16e5a92b1fad4c55c9355a28cd6dd4fc14588e /util
parentdbd60761f51d35d702332453658d5678ba005847 (diff)
downloadgem5-de540a4aeebb512d663daa1342593ddc3cf76e3b.tar.xz
Fix tracediff to work with new parameter and output directory structure.
util/tracediff: Fix to work with new parameter and output directory structure. --HG-- extra : convert_revision : 421ed14fa02df7c9e95eb93f4d36b9ff046f1e39
Diffstat (limited to 'util')
-rwxr-xr-xutil/tracediff13
1 files changed, 8 insertions, 5 deletions
diff --git a/util/tracediff b/util/tracediff
index 402abbe55..87210f1ed 100755
--- a/util/tracediff
+++ b/util/tracediff
@@ -51,12 +51,15 @@ $sim2 = shift;
# be given to both invocations
$simargs = '"' . join('" "', @ARGV) . '"';
-# Redirect config output to cout so that gets diffed too (in case
-# that's the source of the problem).
-$simargs .= " --root:config_output_file=cout";
+# Run individual invocations in separate dirs so output and intermediate
+# files (particularly config.py and config.ini) don't conflict.
+$dir1 = "tracediff-$$-1";
+$dir2 = "tracediff-$$-2";
+mkdir($dir1) or die "Can't create dir $dir1\n";
+mkdir($dir2) or die "Can't create dir $dir2\n";
-$cmd1 = "$sim1 $simargs --stats:text_file=tracediff-$$-1.stats 2>&1 |";
-$cmd2 = "$sim2 $simargs --stats:text_file=tracediff-$$-2.stats 2>&1 |";
+$cmd1 = "$sim1 $simargs -d $dir1 2>&1 |";
+$cmd2 = "$sim2 $simargs -d $dir2 2>&1 |";
# This only works if you have rundiff in your path. I just edit it
# with an explicit path if necessary.