mem: Trace the request master ID in the MemTraceProbe.
authorGabe Black <gabeblack@google.com>
Fri, 1 Sep 2017 11:24:06 +0000 (04:24 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 25 Sep 2017 21:13:42 +0000 (21:13 +0000)
There's a spot for it in the packet trace protobuf, so we should fill it
with something.

Change-Id: I784feb3f668e1b20d67b6ef98d012bcf59b7bd40
Reviewed-on: https://soc-sim-internal-review.googlesource.com/3483
Reviewed-by: Rahul Thakur <rjthakur@google.com>
Reviewed-on: https://gem5-review.googlesource.com/4781
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/probes/mem_trace.cc

index 97b97daae9ba0a611fab5d28ba64965225136a19..465c10004fc59c0955375777e155628d554b956d 100644 (file)
@@ -105,6 +105,7 @@ MemTraceProbe::handleRequest(const ProbePoints::PacketInfo &pkt_info)
     pkt_msg.set_size(pkt_info.size);
     if (withPC && pkt_info.pc != 0)
         pkt_msg.set_pc(pkt_info.pc);
+    pkt_msg.set_pkt_id(pkt_info.master);
 
     traceStream->write(pkt_msg);
 }