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

Guide on code complexity and register spill #97

Open
shaneutt opened this issue Jan 30, 2023 · 0 comments
Open

Guide on code complexity and register spill #97

shaneutt opened this issue Jan 30, 2023 · 0 comments

Comments

@shaneutt
Copy link
Contributor

When developing eBPF programs with Aya developers may reach a level of code complexity that causes spills from registers to the stack, and sometimes even end up failing verification due to related issues. These kinds of errors can be very subtle and difficult to understand, particularly for newcomers.

The purpose of this task is to create documentation in the book which thoroughly dives into complexity and how to structure programs to explain the kinds of issues that can arise, and demonstrate how to avoid OR recover from them. This documentation should include an explanation of compilation with examples that demonstrate a failure case, and examples of how to fix those programs to counteract the issue.

(originally discussed in aya-rs/aya#505)

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

No branches or pull requests

1 participant