python: Automatically disable listeners in batch setups
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 28 Nov 2016 16:40:45 +0000 (16:40 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 21 Mar 2017 10:30:02 +0000 (10:30 +0000)
commit7110d2313e44bf4b611534bbc921ec9808476a37
treeaf438d63af1c2c2f0a99b71908beb761033b1e60
parent065bb8c65569004704183ee0eb9eb1b55b9ed574
python: Automatically disable listeners in batch setups

Determine if gem5 is running in a batch environment by checking if
STDIN is wired to a TTY or not. If the simulator is running in a batch
environment, disable all listeners by default. This behavior can be
overridden using the --enable-listeners option.

Change-Id: I404c709135339144216bf08a2769c016c543333c
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Sean McGoogan <sean.mcgoogan@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2322
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/python/m5/main.py
src/python/m5/util/__init__.py