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

aya: Return OwnedFd for perf_event_open. #701

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

nrxus
Copy link
Contributor

@nrxus nrxus commented Jul 31, 2023

This fixes a file descriptor leak when creating a link of BPF_PERF_EVENT attach type.

@netlify
Copy link

netlify bot commented Jul 31, 2023

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit dbfba18
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/64c838f7920d300008f57b86
😎 Deploy Preview https://deploy-preview-701--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nrxus nrxus force-pushed the perf-event-owned-fd branch 3 times, most recently from 88c45f0 to 37364e8 Compare July 31, 2023 05:30
aya/src/maps/perf/perf_buffer.rs Outdated Show resolved Hide resolved
aya/src/maps/perf/perf_buffer.rs Show resolved Hide resolved
aya/src/programs/perf_attach.rs Outdated Show resolved Hide resolved
aya/src/programs/perf_attach.rs Outdated Show resolved Hide resolved
aya/src/sys/mod.rs Outdated Show resolved Hide resolved
aya/src/sys/perf_event.rs Outdated Show resolved Hide resolved
aya/src/programs/perf_attach.rs Outdated Show resolved Hide resolved
aya/src/programs/perf_attach.rs Outdated Show resolved Hide resolved
aya/src/programs/trace_point.rs Outdated Show resolved Hide resolved
aya/src/programs/perf_attach.rs Outdated Show resolved Hide resolved
@mergify mergify bot added the aya This is about aya (userspace) label Jul 31, 2023
This fixes a file descriptor leak when creating a link of
BPF_PERF_EVENT attach type.
@tamird tamird merged commit 445cb8b into aya-rs:main Jul 31, 2023
22 checks passed
@nrxus nrxus deleted the perf-event-owned-fd branch July 31, 2023 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aya This is about aya (userspace)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants