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. --- tests/configs/tgen-simple-mem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/configs') diff --git a/tests/configs/tgen-simple-mem.py b/tests/configs/tgen-simple-mem.py index 1a95acb54..ae7364214 100644 --- a/tests/configs/tgen-simple-mem.py +++ b/tests/configs/tgen-simple-mem.py @@ -46,8 +46,8 @@ cpu = TrafficGen(config_file = "tests/quick/se/70.tgen/tgen-simple-mem.cfg") system = System(cpu = cpu, physmem = SimpleMemory(), membus = NoncoherentBus(clock="1GHz", width = 16)) -# add a communication monitor -system.monitor = CommMonitor() +# add a communication monitor, and also trace all the packets +system.monitor = CommMonitor(trace_file = "monitor.ptrc.gz") # connect the traffic generator to the bus via a communication monitor system.cpu.port = system.monitor.slave -- cgit v1.2.3