Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Register offsets in arch may be unstable #3873

Open
amscanne opened this issue Mar 5, 2025 · 0 comments
Open

Register offsets in arch may be unstable #3873

amscanne opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@amscanne
Copy link
Contributor

amscanne commented Mar 5, 2025

The register offsets defined in the various arch files are fixed offsets for the kernel pt_regs. However, the pt_regs type does not have any stability guarantees, and some architectures (e.g. MIPS) may even have structure definitions that depend on the kernel configuration. These offsets should be resolved in a similar way to tracepoint structure definitions, e.g. by simply marking ctx as pt_regs in the relevant probes.

See the comments here: #3871 (comment)

@amscanne amscanne added the bug Something isn't working label Mar 5, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant