From a3f49f60c74c33ede433a024ae85d1ca47ed3c78 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 4 Aug 2015 10:29:13 +0100 Subject: mem: Move trace functionality from the CommMonitor to a probe This changeset moves the access trace functionality from the CommMonitor into a separate probe. The probe can be hooked up to any component that exports probe points of the type ProbePoints::Packet. This patch moves the dependency on Google's Protocol Buffers library from the CommMonitor to the MemTraceProbe, which means that the CommMonitor (including stack distance profiling) no long depends on it. --- tests/configs/tgen-simple-mem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/configs/tgen-simple-mem.py b/tests/configs/tgen-simple-mem.py index 8c2aa80a9..d128eb37d 100644 --- a/tests/configs/tgen-simple-mem.py +++ b/tests/configs/tgen-simple-mem.py @@ -56,8 +56,8 @@ system = System(cpu = cpu, physmem = SimpleMemory(), # add a communication monitor, and also trace all the packets and # calculate and verify stack distance -system.monitor = CommMonitor(trace_file = "monitor.ptrc.gz", - trace_enable = True) +system.monitor = CommMonitor() +system.monitor.trace = MemTraceProbe(trace_file = "monitor.ptrc.gz") system.monitor.stackdist = StackDistProbe(verify = True) # connect the traffic generator to the bus via a communication monitor -- cgit v1.2.3