From c446dc40bd438057536fda6e95a44b43589f92b6 Mon Sep 17 00:00:00 2001 From: Radhika Jagtap Date: Fri, 7 Mar 2014 15:56:23 -0500 Subject: mem: Edit proto Packet and enhance the python script This patch changes the decode script to output the optional fields of the proto message Packet, namely id and flags. The flags field is set by the communication monitor. The id field is useful for CPU trace experiments, e.g. linking the fetch side to decode side. It had to be renamed because it clashes with a built in python function id() for getting the "identity" of an object. This patch also takes a few common function definitions out from the multiple scripts and adds them to a protolib python module. --- src/proto/packet.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/proto/packet.proto b/src/proto/packet.proto index 957b494ab..a98df7efe 100644 --- a/src/proto/packet.proto +++ b/src/proto/packet.proto @@ -61,5 +61,5 @@ message Packet { required uint64 addr = 3; required uint32 size = 4; optional uint32 flags = 5; - optional uint64 id = 6; + optional uint64 pkt_id = 6; } -- cgit v1.2.3