Skip to content

Dump the content of the kernarg segment#3277

Merged
lmoriche merged 3 commits into
developfrom
import/develop/ROCm_rocr_debug_agent/pr-26
Feb 24, 2026
Merged

Dump the content of the kernarg segment#3277
lmoriche merged 3 commits into
developfrom
import/develop/ROCm_rocr_debug_agent/pr-26

Conversation

@systems-assistant

@systems-assistant systems-assistant Bot commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

When available, dump the content of the kernarg segment so that
kernel arguments can be checked for out of range values.


🔁 Imported from ROCm/rocr_debug_agent#26
🧑‍💻 Originally authored by @lmoriche

@lancesix lancesix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks.

@lmoriche lmoriche force-pushed the import/develop/ROCm_rocr_debug_agent/pr-26 branch 2 times, most recently from 5d87c40 to ccee82e Compare February 21, 2026 01:52
Generalize the print_local_memory function to print memory from any
given address space.  This function will be used later to print the
content of the kernarg segment (in global memory).

Change-Id: I8de9a8d65fd503d68855f425e33f4ad4c5baca74
When available, dump the content of the kernarg segment so that
kernel arguments can be checked for out of range values.

Change-Id: I9d2239437a4bee5da8a1bf35aa4cbd3e8b8e1a99
print_memory prints memory in word-sized units. Align the segment
address and requested size to the word size so that the rest of the
function can rely on alignment.

Turn print_memory into a template and use word_size/num_columns instead
of hardcoded values.

Change-Id: I8a2d0bb9017f32f90cd182dae23e55e976bb8299
@lmoriche lmoriche force-pushed the import/develop/ROCm_rocr_debug_agent/pr-26 branch from ccee82e to 8170885 Compare February 23, 2026 21:12
@lmoriche lmoriche merged commit c6d7e08 into develop Feb 24, 2026
23 checks passed
@lmoriche lmoriche deleted the import/develop/ROCm_rocr_debug_agent/pr-26 branch February 24, 2026 08:13
systems-assistant Bot pushed a commit to ROCm/rocr_debug_agent that referenced this pull request Feb 27, 2026
Generalize the print_local_memory function to print memory from any
given address space.  This function will be used later to print the
content of the kernarg segment (in global memory).

Change-Id: I8de9a8d65fd503d68855f425e33f4ad4c5baca74
[rocm-systems] ROCm/rocm-systems#3277 (commit c6d7e08)
systems-assistant Bot pushed a commit to ROCm/rocr_debug_agent that referenced this pull request Feb 27, 2026
When available, dump the content of the kernarg segment so that
kernel arguments can be checked for out of range values.

Change-Id: I9d2239437a4bee5da8a1bf35aa4cbd3e8b8e1a99
[rocm-systems] ROCm/rocm-systems#3277 (commit c6d7e08)
systems-assistant Bot pushed a commit to ROCm/rocr_debug_agent that referenced this pull request Feb 27, 2026
print_memory prints memory in word-sized units. Align the segment
address and requested size to the word size so that the rest of the
function can rely on alignment.

Turn print_memory into a template and use word_size/num_columns instead
of hardcoded values.

Change-Id: I8a2d0bb9017f32f90cd182dae23e55e976bb8299
[rocm-systems] ROCm/rocm-systems#3277 (commit c6d7e08)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants