config: Enable elastic trace capture and replay in se/fs
Review Request #3031 - Created Aug. 11, 2015 and submitted
| Information | |
|---|---|
| Curtis Dunham | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
This patch adds changes to the configuration scripts to support elastic
tracing and replay.The patch adds a command line option to enable elastic tracing in SE mode
and FS mode. When enabled the Elastic Trace cpu probe is attached to O3CPU
and a few O3 CPU parameters are tuned. The Elastic Trace probe writes out
both instruction fetch and data dependency traces. The patch also enables
configuring the TraceCPU to replay traces using the SE and FS script.The replay run is designed to resume from checkpoint using atomic cpu to
restore state keeping it consistent with FS run flow. It then switches to
TraceCPU to replay the input traces.
-
configs/common/CacheConfig.py (Diff revision 1) -
Why do we need this?
-
configs/common/Simulation.py (Diff revision 1) -
Separate function please. This file is already very unruly.
-
configs/example/fs.py (Diff revision 1) -
I would prefer a separate function here. And I think the trace file paths should be obtained from options. I think we can reuse the options that are used to supply the trace files to the trace cpu.
-
configs/example/se.py (Diff revision 1) -
Other than the check on the number of cpus, I would want to rely on the trace cpu to make sure that the trace files have been provided. So I would not do any checking on these files here.
-
configs/example/se.py (Diff revision 1) -
It seems like this code is common to both fs and se.py. We should write this code as a function to some other file, may be to CpuConfig.py and invoke the function in both se and fs.py.
-
configs/example/etrace_replay.py (Diff revision 2) -
I think these are the only lines that extra
over what se.py has. Why not just move these to se.py? -
src/cpu/trace/trace_cpu.hh (Diff revision 2) -
Merge with patch on trace cpu.
-
src/cpu/trace/trace_cpu.cc (Diff revision 2) -
Merge with patch on trace cpu.
