cpu: Split the traffic generator into two classes
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 26 Apr 2018 17:16:53 +0000 (18:16 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 13 Jul 2018 09:26:23 +0000 (09:26 +0000)
commit0793a1bbdc190a7bd41b7ed81ef8291ceaeb722e
treed86192c9d5d2dfecdee71bd731a92d09494f04b5
parentc9dd86a5cd6f26a2ba776d0adb60d4e18c553b8b
cpu: Split the traffic generator into two classes

The traffic generator currently assumes that it is always driven from
a configuration file. Split it into a base class (BaseTrafficGen) that
handles basic packet generation and a derived class that implements
the config handling (TrafficGen).

Change-Id: I9407f04c40ad7e40a263c8d1ef29d37ff8e6f1b4
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11515
src/cpu/testers/traffic_gen/BaseTrafficGen.py [new file with mode: 0644]
src/cpu/testers/traffic_gen/SConscript
src/cpu/testers/traffic_gen/TrafficGen.py
src/cpu/testers/traffic_gen/base.cc [new file with mode: 0644]
src/cpu/testers/traffic_gen/base.hh [new file with mode: 0644]
src/cpu/testers/traffic_gen/traffic_gen.cc
src/cpu/testers/traffic_gen/traffic_gen.hh