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.
This commit is contained in:
Andreas Hansson
2013-01-07 13:05:37 -05:00
parent 11ab30fa5a
commit f456c7983d
9 changed files with 139 additions and 17 deletions

View File

@@ -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')