diff --git a/profile/device/aie_trace/aie_trace_offload.cpp b/profile/device/aie_trace/aie_trace_offload.cpp index 003c22db..d60497e1 100644 --- a/profile/device/aie_trace/aie_trace_offload.cpp +++ b/profile/device/aie_trace/aie_trace_offload.cpp @@ -416,8 +416,8 @@ uint64_t AIETraceOffload::syncAndLog(uint64_t index) } // Log nBytes of trace. Always copy: syncTraceBuf() unmaps the BO before returning. - traceLogger->addAIETraceData(index, hostBuf, nBytes, true); - + traceLogger->addAIETraceData(index, hostBuf, nBytes, mEnCircularBuf || isPLIO); + return nBytes; }