-
Notifications
You must be signed in to change notification settings - Fork 297
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
[216] Add Support For Flow Dissector Programs #802
base: main
Are you sure you want to change the base?
Conversation
✅ 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.
Looks great so far!
Apart from one comment I posted, it would be nice to add an integration test.
@@ -0,0 +1,34 @@ | |||
use core::ffi::c_void; |
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.
Please use crate::cty::c_void
instead.
aya_bpf_cty is designed to support cross compilation for different CPU architectures by honoring bpf_target
cfg value. For example, when you are on x86_64 host and want to compile a BPF program for arm64, target-cpu
is going to be bpf
, so you need the other custom cfg value to figure out what CPU architecture you are targetting.
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.
Fixed!
0ab5fe6
to
c457da0
Compare
Added a integration test that's mostly a clone of the basic_uprobe integration test. Is this the right test or do we want something more comprehensive? |
@@ -1,4 +1,4 @@ | |||
/* automatically generated by rust-bindgen 0.65.1 */ | |||
/* automatically generated by rust-bindgen 0.68.1 */ |
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.
Please take the generated/* changes out of the PR, we generate the bindings in CI
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, sorry!
c457da0
to
bf3efa7
Compare
bf3efa7
to
1c58716
Compare
Hey @alessandrod, this pull request changes the Aya Public API and requires your review. |
@azenna, this pull request is now in conflict and requires a rebase. |
Hey @alessandrod, this pull request changes the Aya Public API and requires your review. |
@azenna, this pull request is now in conflict and requires a rebase. |
Adds support for flow dissector programs. Only (1/5) know what I am doing and would appreciate feedback!
#216
This change is