Dump the content of the kernarg segment#26
Open
ammallya wants to merge 3 commits into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When available, dump the content of the kernarg segment so that
kernel arguments can be checked for out of range values.