-
Notifications
You must be signed in to change notification settings - Fork 296
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
docs: update docs for load to mention include_bytes_aligned #1119
base: main
Are you sure you want to change the base?
Conversation
This macro is required if you are bundling programs statically into your binary, which is not an uncommon thing to do. This change updates the documentation for the load function to mention this macro and the need for alignment.
✅ Deploy Preview for aya-rs-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
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 PR!
aya/src/bpf.rs
Outdated
@@ -375,6 +375,10 @@ impl<'a> EbpfLoader<'a> { | |||
|
|||
/// Loads eBPF bytecode from a buffer. | |||
/// | |||
/// The program will need to be aligned properly for you to use it. |
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.
nit: I would say The buffer needs to be 4-bytes aligned. If you are ...
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.
done
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 still see the past tense being used.
Alessandro proposed:
The buffer needs to be 4-bytes aligned. If you are ...
In the diff, I see:
The buffer will need to be aligned to 4 bytes. If you are ...
This macro is required if you are bundling programs statically into your binary, which is not an uncommon thing to do.
This change updates the documentation for the load function to mention this macro and the need for alignment.
This change is