changeset 15492f220f16 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=15492f220f16
description:
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:
src/python/m5/main.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 10f28b61fcb1 -r 15492f220f16 src/python/m5/main.py
--- a/src/python/m5/main.py Tue Oct 06 17:26:50 2015 -0700
+++ b/src/python/m5/main.py Tue Oct 06 17:26:50 2015 -0700
@@ -291,7 +291,8 @@
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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev