-
Notifications
You must be signed in to change notification settings - Fork 300
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
aya/maps: pin for (async)perf_event_array #822
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. |
abb683d
to
8f26aed
Compare
8f26aed
to
2dca84b
Compare
Hey @alessandrod, this pull request changes the Aya Public API and requires your review. |
@astoycos, this pull request is now in conflict and requires a rebase. |
2dca84b
to
58b9cbf
Compare
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.
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alessandrod and @astoycos)
aya/src/maps/perf/async_perf_event_array.rs
line 116 at r1 (raw file):
/// When a map is pinned it will remain loaded until the corresponding file /// is deleted. All parent directories in the given `path` must already exist. pub fn pin<P: AsRef<Path>>(&mut self, path: P) -> Result<(), PinError> {
shouldn't this take &self?
aya/src/maps/perf/perf_event_array.rs
line 206 at r1 (raw file):
/// When a map is pinned it will remain loaded until the corresponding file /// is deleted. All parent directories in the given `path` must already exist. pub fn pin<P: AsRef<Path>>(&mut self, path: P) -> Result<(), PinError> {
shouldn't this take &self?
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.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @alessandrod and @astoycos)
aya/src/maps/perf/perf_event_array.rs
line 7 at r1 (raw file):
borrow::{Borrow, BorrowMut}, ops::Deref, os::fd::{AsFd as _, AsRawFd, BorrowedFd, RawFd},
this as _
is incorrect conflict resolution
58b9cbf
to
42c9d76
Compare
Done, good catch thanks! |
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.
Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @alessandrod)
@astoycos, this pull request is now in conflict and requires a rebase. |
Implement pinning for perf_event_array and async_perf_event_array. Additionally make the core MapData.pin method operate on a reference rather than a mutable reference. Signed-off-by: astoycos <[email protected]>
42c9d76
to
263bcb2
Compare
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.
Reviewed 3 of 3 files at r3, all commit messages.
Dismissed @alessandrod from 2 discussions.
Reviewable status: complete! all files reviewed, all discussions resolved
Implement pinning for perf_event_array and async_perf_event_array. Additionally make the core MapData.pin method operate on a reference rather than a mutable reference.
TODO from #783