util: Add a unit test for the m5 utility's "readfile" command.
[gem5.git] / util / encode_packet_trace.py
index bee26f01cb0f630c839498627922a7692ff95a33..7ba80227ccb58ea0ee25e7121da00e0ec06bd0a1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
 
 # Copyright (c) 2013-2014 ARM Limited
 # All rights reserved
@@ -34,8 +34,6 @@
 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors: Andreas Hansson
 
 # This script is used to migrate ASCII packet traces to the protobuf
 # format currently used in gem5. It assumes that protoc has been
@@ -105,7 +103,7 @@ def main():
     header = packet_pb2.PacketHeader()
     header.obj_id = "Converted ASCII trace " + sys.argv[1]
     # Assume the default tick rate
-    header.tick_freq = 1000000000
+    header.tick_freq = 1000000000000
     protolib.encodeMessage(proto_out, header)
 
     # For each line in the ASCII trace, create a packet message and