Review Board 2.0.15


sim: enable adding pid to output directory name

Review Request #3072 - Created Aug. 23, 2015 and updated - Latest diff uploaded

Information
Steve Reinhardt
gem5
default
Reviewers
Default
Changeset 11060:06c8c441324a
---------------------------
sim: enable adding pid to output directory name

With a fixed output directory name, running concurrent gem5 jobs
in the same directory causes jobs to overwrite each other's output.
Worse, for some upcoming changes where the output directory is
used to hold redirected file I/O, having concurrent jobs share the
same directory can cause crashes.

This patch enables easier generation of unique output directories
by replacing any occurrence of '$$' in the output directory name
with the gem5 process ID.  PID-specific output dirs can be enabled
by default by overriding the 'm5out' default in the user's
.m5/options.py file, as described in the comment.