Skip to content

Conversation

@brenns10
Copy link
Member

@brenns10 brenns10 commented Dec 3, 2025

This was introduced in drgn 0.0.33. For UEK it's doing nothing more than "cpu_curr(prog, task_cpu(task)) == task". So open-code it instead. This fixes errors like:

ImportError: cannot import name 'task_on_cpu' from 'drgn.helpers.linux' (/usr/lib64/python3.9/site-packages/drgn/helpers/linux/__init__.py)

This was introduced in drgn 0.0.33. For UEK it's doing nothing more than
"cpu_curr(prog, task_cpu(task)) == task". So open-code it instead. This
fixes errors like:

ImportError: cannot import name 'task_on_cpu' from 'drgn.helpers.linux' (/usr/lib64/python3.9/site-packages/drgn/helpers/linux/__init__.py)

Signed-off-by: Stephen Brennan <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 3, 2025
@brenns10 brenns10 merged commit ad09667 into oracle-samples:main Dec 5, 2025
7 checks passed
@brenns10 brenns10 deleted the one_more_pstack_fix branch December 5, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants