summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-10-04 19:29:49 -0700
committerGabe Black <gabeblack@google.com>2017-10-05 09:15:40 +0000
commitbb23c5075e7a247eaa452a5c7d9bae4c785f730e (patch)
tree9125a3ae8e4f05cca63df06c179fee00b1947c36 /util
parentdad2ed25ed5bc88683988ec898f31e2da0d071ed (diff)
downloadgem5-bb23c5075e7a247eaa452a5c7d9bae4c785f730e.tar.xz
misc: Make decode_packet_trace.py print the new master ID fields.
Those fields are "repeated" which means they can appear zero times, which they will in older style traces. Change-Id: Ib6ff4aab521332cf1405549d0d6e922c51c12f32 Reviewed-on: https://gem5-review.googlesource.com/5003 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/decode_packet_trace.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/decode_packet_trace.py b/util/decode_packet_trace.py
index 34a0d8bbc..c21a150fa 100755
--- a/util/decode_packet_trace.py
+++ b/util/decode_packet_trace.py
@@ -105,6 +105,9 @@ def main():
print "Object id:", header.obj_id
print "Tick frequency:", header.tick_freq
+ for id_string in header.id_strings:
+ print 'Master id %d: %s' % (id_string.key, id_string.value)
+
print "Parsing packets"
num_packets = 0