diff options
author | Polina Dudnik <pdudnik@gmail.com> | 2009-07-13 12:50:10 -0500 |
---|---|---|
committer | Polina Dudnik <pdudnik@gmail.com> | 2009-07-13 12:50:10 -0500 |
commit | 9a675a0391aa0c0463baf8bac0b9209b675306a8 (patch) | |
tree | 8b2f2edf3e916fa0b2958a52cc55d6743796dec4 /src/mem/ruby/recorder | |
parent | b28058917c7bd324ca2b080a0a5f7ba617ea4c40 (diff) | |
download | gem5-9a675a0391aa0c0463baf8bac0b9209b675306a8.tar.xz |
Changes to add tracing and replaying command-line options
Trace is automatically ended upon a manual checkpoint
Diffstat (limited to 'src/mem/ruby/recorder')
-rw-r--r-- | src/mem/ruby/recorder/Tracer.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mem/ruby/recorder/Tracer.cc b/src/mem/ruby/recorder/Tracer.cc index d2df544d8..5b1e4274b 100644 --- a/src/mem/ruby/recorder/Tracer.cc +++ b/src/mem/ruby/recorder/Tracer.cc @@ -92,10 +92,11 @@ void Tracer::startTrace(string filename) void Tracer::stopTrace() { - assert(m_enabled == true); - m_trace_file.close(); - cout << "Request trace file closed." << endl; - m_enabled = false; + if (m_enabled == true) { + m_trace_file.close(); + cout << "Request trace file closed." << endl; + m_enabled = false; + } } void Tracer::traceRequest(const string & sequencer_name, const Address& data_addr, const Address& pc_addr, RubyRequestType type, Time time) |