summaryrefslogtreecommitdiff
path: root/src/mem/SConscript
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:37 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:37 -0500
commitf456c7983ded455b006d25a9c5e17401f6c22dca (patch)
tree622f60618aa3158e8f4d757e3dcc3536a5bb3057 /src/mem/SConscript
parent11ab30fa5a4f56e4f7ea3b5b51e529bc246d1d35 (diff)
downloadgem5-f456c7983ded455b006d25a9c5e17401f6c22dca.tar.xz
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.
Diffstat (limited to 'src/mem/SConscript')
-rw-r--r--src/mem/SConscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mem/SConscript b/src/mem/SConscript
index 374f904a8..ca89418b5 100644
--- a/src/mem/SConscript
+++ b/src/mem/SConscript
@@ -30,17 +30,21 @@
Import('*')
+# Only build the communication if we have support for protobuf as the
+# tracing relies on it
+if env['HAVE_PROTOBUF']:
+ SimObject('CommMonitor.py')
+ Source('comm_monitor.cc')
+
SimObject('AddrMapper.py')
SimObject('Bridge.py')
SimObject('Bus.py')
-SimObject('CommMonitor.py')
SimObject('MemObject.py')
Source('addr_mapper.cc')
Source('bridge.cc')
Source('bus.cc')
Source('coherent_bus.cc')
-Source('comm_monitor.cc')
Source('mem_object.cc')
Source('mport.cc')
Source('noncoherent_bus.cc')