Skip to content

Log nBytes of trace only for plio#92

Merged
jvillarre merged 2 commits into
Xilinx:masterfrom
predutta:pliofix
Jul 20, 2026
Merged

Log nBytes of trace only for plio#92
jvillarre merged 2 commits into
Xilinx:masterfrom
predutta:pliofix

Conversation

@predutta

Copy link
Copy Markdown
Collaborator

Enabling logging of the trace only for plio.

Tested on aie2 (vek280) plio design that was failing earlier.

Signed-off-by: predutta <predutta@amd.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how AIE trace offload data is forwarded to the trace logger by changing the copy behavior when adding trace buffers, intending to special-case PLIO-related trace handling.

Changes:

  • Updated AIETraceOffload::syncAndLog() to pass mEnCircularBuf || isPLIO as the copy flag to traceLogger->addAIETraceData(...) instead of always copying.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 418 to +420
// 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);
@jvillarre
jvillarre merged commit c5be3e3 into Xilinx:master Jul 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants