From f456c7983ded455b006d25a9c5e17401f6c22dca Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 7 Jan 2013 13:05:37 -0500 Subject: mem: Add tracing support in the communication monitor This patch adds packet tracing to the communication monitor using a protobuf as the mechanism for creating the trace. If no file is specified, then the tracing is disabled. If a file is specified, then for every packet that is successfully sent, a protobuf message is serialized to the file. --- src/mem/CommMonitor.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mem/CommMonitor.py') diff --git a/src/mem/CommMonitor.py b/src/mem/CommMonitor.py index a34a57db4..3f9106cc4 100644 --- a/src/mem/CommMonitor.py +++ b/src/mem/CommMonitor.py @@ -49,6 +49,9 @@ class CommMonitor(MemObject): master = MasterPort("Master port") slave = SlavePort("Slave port") + # packet trace output file, disabled by default + trace_file = Param.String("", "Packet trace output file") + # control the sample period window length of this monitor sample_period = Param.Clock("1ms", "Sample period for histograms") -- cgit v1.2.3