diff --git a/DRAMSys/simulator/src/common/TlmRecorder.cpp b/DRAMSys/simulator/src/common/TlmRecorder.cpp index c254fc78..aae98af4 100644 --- a/DRAMSys/simulator/src/common/TlmRecorder.cpp +++ b/DRAMSys/simulator/src/common/TlmRecorder.cpp @@ -48,7 +48,7 @@ using namespace std; -TlmRecorder::TlmRecorder(string uri, string dbname, bool recenable) : sqlScriptURI(uri), dbName(dbname), senderName("TlmRecorder"), recordingEnabled(recenable), totalNumTransactions(1), simulationTimeCoveredByRecording(SC_ZERO_TIME) +TlmRecorder::TlmRecorder(string recorderName, string uri, string dbname, bool recenable) : sqlScriptURI(uri), dbName(dbname), senderName(recorderName), recordingEnabled(recenable), totalNumTransactions(1), simulationTimeCoveredByRecording(SC_ZERO_TIME) { if (TlmRecorder::recordingEnabled == true) { recordedData.reserve(transactionCommitRate); diff --git a/DRAMSys/simulator/src/common/TlmRecorder.h b/DRAMSys/simulator/src/common/TlmRecorder.h index f302042c..98c7f31b 100644 --- a/DRAMSys/simulator/src/common/TlmRecorder.h +++ b/DRAMSys/simulator/src/common/TlmRecorder.h @@ -62,7 +62,7 @@ public: std::string senderName; bool recordingEnabled; - TlmRecorder(string uri, string dbname, bool recenable); + TlmRecorder(string recorderName, string uri, string dbname, bool recenable); ~TlmRecorder(); void recordMemconfig(string memconfig){this->memconfig = memconfig;} diff --git a/DRAMSys/simulator/src/simulation/Simulation.cpp b/DRAMSys/simulator/src/simulation/Simulation.cpp index 55bd4c0d..9f7e4a45 100644 --- a/DRAMSys/simulator/src/simulation/Simulation.cpp +++ b/DRAMSys/simulator/src/simulation/Simulation.cpp @@ -88,7 +88,8 @@ void Simulation::setupTlmRecorders(const string &traceName, const string &pathTo for (size_t i = 0; i < Configuration::getInstance().NumberOfMemChannels; i++) { std::string sqlScriptURI = pathToResources + string("scripts/createTraceDB.sql"); std::string dbName = traceName + string("_channel") + std::to_string(i) + ".tdb"; - TlmRecorder *tlmRecorder = new TlmRecorder(sqlScriptURI.c_str(), dbName.c_str(), Configuration::getInstance().DatabaseRecording); + std::string recorderName = "TlmRecorder" + std::to_string(i); + TlmRecorder *tlmRecorder = new TlmRecorder(recorderName.c_str(), sqlScriptURI.c_str(), dbName.c_str(), Configuration::getInstance().DatabaseRecording); tlmRecorder->recordMemconfig(Configuration::getInstance().memconfigUri); tlmRecorder->recordMemspec(Configuration::getInstance().memspecUri);