SWDEV-301667 - Reset profiler correlation_id_

- The correlation_id had random junk values which we were inserting in
the dispatch AQL packet even when no profiler was attached but if we had
a valid timestamp.
- Also make sure we dont even write the reserved2 field in the AQL
packet if no profiler attached.

Change-Id: Icdb7493198c1bb5e2d786a97e027288660854cd7


[ROCm/clr commit: 9a6ddae7b2]
This commit is contained in:
Saleel Kudchadker
2024-01-25 02:10:15 +00:00
zatwierdzone przez Maneesh Gupta
rodzic 3445b57a43
commit cc0b04cc60
3 zmienionych plików z 6 dodań i 2 usunięć
@@ -158,7 +158,9 @@ bool Event::setStatus(int32_t status, uint64_t timeStamp) {
releaseResources();
}
if (profilingInfo().enabled_) activity_prof::ReportActivity(command());
if (profilingInfo().enabled_ && activity_prof::IsEnabled(OP_ID_DISPATCH)) {
activity_prof::ReportActivity(command());
}
// Broadcast all the waiters.
if (referenceCount() > 1) {