Skip to content
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

ebpf(python): update offsets for new pythons #3035

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Conversation

korniltsev
Copy link
Collaborator

No description provided.

Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines -3222 to -3223
PyRuntimeState_gilstate: 3112,
PyRuntimeState_autoTSSkey: 1848,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am assuming this is because it is not a "released" version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am assuming the same :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I am surprised my integration tests did not catch it, It should fail now, because test image is based on old release candidate. I will look into it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyRuntimeState_gilstate is not used on >= 3.13
And PyRuntimeState_autoTSSkey is used to read pthread_key which is an int and a counter and almost always it is zero. I am not 100% sure, but I think the test did not fail because the offset is wrong but it still read some garbage uint32=0.

fix

fix

add more pythons, add some offsets validation
@korniltsev korniltsev enabled auto-merge (squash) February 28, 2024 06:09
@korniltsev korniltsev merged commit c08b736 into main Feb 28, 2024
19 checks passed
@korniltsev korniltsev deleted the ebpf_python_updates branch February 28, 2024 06:15
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.

None yet

3 participants