Skip to content

fixing error/warnings in XDP plugins#45

Merged
jvillarre merged 6 commits intomasterfrom
xdp_error_warnings
Apr 22, 2026
Merged

fixing error/warnings in XDP plugins#45
jvillarre merged 6 commits intomasterfrom
xdp_error_warnings

Conversation

@predutta
Copy link
Copy Markdown
Collaborator

@predutta predutta commented Apr 15, 2026

Fixes that Improves XRT warnings when AIE profile settings are missing or mis-specified, and when tile_based_interface_tile_metrics in xrt.ini does not match the supported forms.

[CR-1242635] : Warning message incorrect when specifying kernel that does not exist for graph_based_memory_tile_metrics

[CR-1239757] : No warning message when using {,} tile based interface tile metric

[CR-1218626] : Warning message with board run when xrt.ini has AIE profiling but no metrics is missing some settings

[CR-1236200]: Invalid warning message when using channel specific tile based metrics

Prerona Dutta added 2 commits April 15, 2026 14:50
Signed-off-by: Prerona Dutta <predutta@xcopredutta50x.amd.com>
Signed-off-by: Prerona Dutta <predutta@xcopredutta50x.amd.com>
Copy link
Copy Markdown

Copilot AI left a comment

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 focuses on improving XRT/XDP user-facing warnings in AIE trace/profile plugins when xrt.ini AIE metric settings are missing, mis-specified, or use unsupported forms, aligning messages with the actual supported setting names.

Changes:

  • Fixes warning text to reference the correct config keys (e.g., graph_based_*_tile_metrics, graph_based_interface_tile_metrics).
  • Expands “no counters / no valid metrics” guidance to include both graph-based and tile-based metric settings (and additional tile types).
  • Adds new warnings for certain invalid tile_based_interface_tile_metrics formats.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
profile/plugin/aie_trace/aie_trace_metadata.cpp Corrects setting name references and adds new warnings for invalid interface-tile metric lines.
profile/plugin/aie_profile/ve2/aie_profile.cpp Improves “no counters found” warning to list supported metric settings more completely.
profile/plugin/aie_profile/edge/aie_profile.cpp Improves “no valid metric setting” warning to list supported metric settings more completely.
profile/plugin/aie_profile/aie_profile_metadata.cpp Corrects setting name references and adds new warnings for invalid interface-tile metric lines.

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

Comment thread profile/plugin/aie_trace/aie_trace_metadata.cpp
Comment thread profile/plugin/aie_profile/aie_profile_metadata.cpp
Comment thread profile/plugin/aie_profile/aie_profile_metadata.cpp
predutta and others added 4 commits April 17, 2026 14:09
Fixing the logic so that valid single-tile settings that include a channel (e.g. <col>:<metric>:<channel>) isn't considered error.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
In case second entry is not maxcolumn, we are giving error message by default whereas it could also be case three. Hence leaving it to be handled correctly in case three.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Avoiding redundant checks in pass three which have already been filtered out in pass two.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Prerona Dutta <predutta@xcopredutta50x.amd.com>
@jvillarre jvillarre merged commit 3df029f into master Apr 22, 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