summaryrefslogtreecommitdiff
path: root/src/cpu/testers/traffic_gen/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
commit1da209140cd7bf267315b10698bf14c21a76b1b8 (patch)
treefdfc048fe02cdd6862a21361484e75c97fca4366 /src/cpu/testers/traffic_gen/SConscript
parent9c5ef235cc595d0f51b0810786c2b512bef7c69f (diff)
downloadgem5-1da209140cd7bf267315b10698bf14c21a76b1b8.tar.xz
cpu: Add support for protobuf input for the trace generator
This patch adds support for reading input traces encoded using protobuf according to what is done in the CommMonitor. A follow-up patch adds a Python script that can be used to convert the previously used ASCII traces to protobuf equivalents. The appropriate regression input is updated as part of this patch.
Diffstat (limited to 'src/cpu/testers/traffic_gen/SConscript')
-rw-r--r--src/cpu/testers/traffic_gen/SConscript9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cpu/testers/traffic_gen/SConscript b/src/cpu/testers/traffic_gen/SConscript
index 63ce20984..09a06fe04 100644
--- a/src/cpu/testers/traffic_gen/SConscript
+++ b/src/cpu/testers/traffic_gen/SConscript
@@ -39,8 +39,11 @@
Import('*')
-SimObject('TrafficGen.py')
+# Only build the traffic generator if we have support for protobuf as the
+# tracing relies on it
+if env['HAVE_PROTOBUF']:
+ SimObject('TrafficGen.py')
-Source('traffic_gen.cc')
+ Source('traffic_gen.cc')
-DebugFlag('TrafficGen')
+ DebugFlag('TrafficGen')