diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2015-10-06 17:26:50 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2015-10-06 17:26:50 -0700 |
commit | 4b7c1fe61048a6d14c79c9bd857a7126ad56eb2d (patch) | |
tree | 38d174d4f9fb93927326f7492f9609f57d6cdf9a /src/python/m5 | |
parent | a2c875c746a7b9b5dcb94fd93d94ab70286dbbb4 (diff) | |
download | gem5-4b7c1fe61048a6d14c79c9bd857a7126ad56eb2d.tar.xz |
sim: print pid in output header
This information is useful if you have a bunch of simulations running
and want to know which one to kill, but you've neglected to take
advantage of the previous patch and embed the pid in your output path.
Diffstat (limited to 'src/python/m5')
-rw-r--r-- | src/python/m5/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/main.py b/src/python/m5/main.py index 700aae3d3..09bf7e92b 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -291,7 +291,8 @@ def main(*args): print "gem5 started %s" % \ datetime.datetime.now().strftime("%b %e %Y %X") - print "gem5 executing on %s" % socket.gethostname() + print "gem5 executing on %s, pid %d" % \ + (socket.gethostname(), os.getpid()) # in Python 3 pipes.quote() is moved to shlex.quote() import pipes |