-
Notifications
You must be signed in to change notification settings - Fork 194
Rewrite linux helper iterators in C #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4d79288 to
e0956c8
Compare
|
@osandov All of your comments on the iterator implementations have been addressed here, this PR is ready for review. |
e0956c8 to
6b3ef3e
Compare
PR #133 adds a test case using multiprocessing.Barrier(), which needs /dev/shm. Signed-off-by: Omar Sandoval <[email protected]>
6b3ef3e to
e23e187
Compare
6dc8f0a to
ff4c3a5
Compare
osandov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few trivial things. Are those test failures in your temporary test just because the vmtest environment doesn't have many processes? Once you get rid of the temporary shims, I'll just clean up trivial code style issues myself (I wish clang-format was usable for the Linux kernel style).
ff4c3a5 to
67e98fa
Compare
The failures are because we now iterate the pid_hash in a different order. FWIW, I've been using clang-format thus far with very little manual tweaking necessary. |
|
This is the failure I'm referring to: |
67e98fa to
f5e3c55
Compare
|
Alright, temporary shims have been removed, and everything has been combined into a single commit. |
I would assume so yes, as |
|
I'll fix the isort real quick |
f5e3c55 to
27774c6
Compare
In preparation for introducing an API to represent threads, the linux helper iterators, radix_tree_for_each, idr_for_each, for_each_pid, and for_each_task have been rewritten in C. This will allow them to be accessed from libdrgn, which will be necessary for the threads API. Signed-off-by: Kevin Svetlitski <[email protected]>
27774c6 to
3142141
Compare
osandov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just pushed to make isort and black happy. Once those tests all pass, I'll merge this.
This was split off from #129 per @osandov's request.
In preparation for introducing an API to represent threads, the linux
helper iterators, radix_tree_for_each, idr_for_each, for_each_pid, and
for_each_task have been rewritten in C. This will allow them to be
accessed from libdrgn, which will be necessary for the threads API.
Signed-off-by: Kevin Svetlitski [email protected]