Skip to content

Dump the content of the kernarg segment#26

Open
ammallya wants to merge 3 commits into
amd-stagingfrom
users/lmoriche/dump-kernel-arguments
Open

Dump the content of the kernarg segment#26
ammallya wants to merge 3 commits into
amd-stagingfrom
users/lmoriche/dump-kernel-arguments

Conversation

@ammallya
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.

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
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.

2 participants