From 1da209140cd7bf267315b10698bf14c21a76b1b8 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 7 Jan 2013 13:05:37 -0500 Subject: 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. --- src/cpu/testers/traffic_gen/SConscript | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/cpu/testers/traffic_gen/SConscript') 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') -- cgit v1.2.3