Skip to content

Commit fd0a41a

Browse files
author
Paul Schumacher
committed
use new addOpenedFile
Signed-off-by: Paul Schumacher <[email protected]>
1 parent b01e019 commit fd0a41a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/runtime_src/xdp/profile/plugin/aie_trace/aie_trace_plugin.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,8 @@ void AieTracePluginUnified::updateAIEDevice(void *handle, bool hw_context_flow)
226226
std::string configFile = "aie_event_runtime_config_" + std::to_string(deviceID) + ".json";
227227
configWriter = new AieTraceConfigWriter(configFile.c_str(), deviceID);
228228
writers.push_back(configWriter);
229-
(db->getStaticInfo())
230-
.addOpenedFile(configWriter->getcurrentFileName(),
231-
"AIE_EVENT_RUNTIME_CONFIG", deviceID);
229+
db->addOpenedFile(configWriter->getcurrentFileName(),
230+
"AIE_EVENT_RUNTIME_CONFIG", deviceID);
232231
}
233232

234233
if (!AIEData.offloadManager)
@@ -301,8 +300,7 @@ void AieTracePluginUnified::updateAIEDevice(void *handle, bool hw_context_flow)
301300
deviceName.c_str(), deviceID);
302301
writers.push_back(tsWriter);
303302
db->addOpenedFile(tsWriter->getcurrentFileName(),
304-
"AIE_EVENT_TRACE_TIMESTAMPS",
305-
deviceID);
303+
"AIE_EVENT_TRACE_TIMESTAMPS", deviceID);
306304

307305
// Start the AIE trace timestamps thread
308306
// NOTE: we purposely start polling before configuring trace events

0 commit comments

Comments
 (0)