diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2005-03-09 13:44:19 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2005-03-09 13:44:19 -0500 |
commit | ffaba200d1078f19a1d56af803420a79a96f7fe2 (patch) | |
tree | a24789bceac0ce3718baee689068a68cc533b1d4 /util/tracediff | |
parent | a99607863fd80a1a81c29aa3d24553ece2ab8d47 (diff) | |
parent | 21946f071026d3b3c4122ef41d755f883e22e668 (diff) | |
download | gem5-ffaba200d1078f19a1d56af803420a79a96f7fe2.tar.xz |
Merge zizzer:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/.automount/zazzer/z/rdreslin/m5bk/timing_L1
--HG--
extra : convert_revision : 0121d59e46f0961f753c2e1bd0fa1c63642d859e
Diffstat (limited to 'util/tracediff')
-rwxr-xr-x | util/tracediff | 13 |
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. |