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
This commit is contained in:
Saleel Kudchadker
2024-01-25 02:10:15 +00:00
committed by Maneesh Gupta
parent 60549b101c
commit 9a6ddae7b2
3 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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) {