-
Notifications
You must be signed in to change notification settings - Fork 17
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
LSE-373: workqueue: Fix errors seen for newer (v6.4 and later) kernels. #87
Conversation
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 tested this on UEK-next and it resolves all the workqueue related issues. Looks to pass on gitlab CI too. However, one tiny nit if you don't mind. Thanks!
drgn_tools/workqueue.py
Outdated
prog = workqueue.prog_ | ||
pwq = Object( | ||
prog, | ||
"struct pool_workqueue", | ||
address=prog.read_word(per_cpu_ptr(workqueue.cpu_pwq, cpu)), | ||
).address_of_() |
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.
You can simplify this by just dereferencing the double pointer.
prog = workqueue.prog_ | |
pwq = Object( | |
prog, | |
"struct pool_workqueue", | |
address=prog.read_word(per_cpu_ptr(workqueue.cpu_pwq, cpu)), | |
).address_of_() | |
pwq = per_cpu_ptr(workqueue.cpu_pwq, cpu)[0] |
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.
Makes sense. Have done that now.
LSE-373. Signed-off-by: Imran Khan <[email protected]>
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.
Thanks for the change, everything else is good! The test failure is unrelated to your change.
LSE-373.