summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorVictor Garcia <victor.garcia@arm.com>2016-04-07 11:32:38 -0500
committerVictor Garcia <victor.garcia@arm.com>2016-04-07 11:32:38 -0500
commitdf5a81183303fa941d71e866ff8d258e4d6a510e (patch)
tree9a3b6d1cec6ac0a672480ad477090d743af54e0d /util
parenta3bf4aa6ec9caa68a558f7347d55991f7a254fa5 (diff)
downloadgem5-df5a81183303fa941d71e866ff8d258e4d6a510e.tar.xz
mem: Add Program Counter to MemTraceProbe
Diffstat (limited to 'util')
-rwxr-xr-xutil/decode_packet_trace.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/decode_packet_trace.py b/util/decode_packet_trace.py
index e9105753d..97d344163 100755
--- a/util/decode_packet_trace.py
+++ b/util/decode_packet_trace.py
@@ -118,11 +118,15 @@ def main():
if packet.HasField('pkt_id'):
ascii_out.write('%s,' % (packet.pkt_id))
if packet.HasField('flags'):
- ascii_out.write('%s,%s,%s,%s,%s\n' % (cmd, packet.addr, packet.size,
+ ascii_out.write('%s,%s,%s,%s,%s' % (cmd, packet.addr, packet.size,
packet.flags, packet.tick))
else:
- ascii_out.write('%s,%s,%s,%s\n' % (cmd, packet.addr, packet.size,
+ ascii_out.write('%s,%s,%s,%s' % (cmd, packet.addr, packet.size,
packet.tick))
+ if packet.HasField('pc'):
+ ascii_out.write(',%s\n' % (packet.pc))
+ else:
+ ascii_out.write('\n')
print "Parsed packets:", num_packets